]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
disable default receive filter on the write-only bridge socket.
authorOliver Hartkopp <socketcan@hartkopp.net>
Tue, 6 Jan 2009 09:04:34 +0000 (09:04 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Tue, 6 Jan 2009 09:04:34 +0000 (09:04 +0000)
candump.c

index f2762f9e0bc4cae3cc8f392b815e54d665ca1176..cbe821e1fc7ccac90dce24573aa5cd852d71bdae 100644 (file)
--- a/candump.c
+++ b/candump.c
@@ -279,6 +279,9 @@ int main(int argc, char **argv)
                                        return 1;
                                }
 
+                               /* disable default receive filter on this write-only RAW socket */
+                               setsockopt(bridge, SOL_CAN_RAW, CAN_RAW_FILTER, NULL, 0);
+
                                if (opt == 'B') {
                                        int loopback = 0;