summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2005-08-25 12:06:15 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2005-08-25 12:06:15 +0000
commitac8302a72441b03ddf2420b3aaf9a7e7ba5ecbca (patch)
tree0ae81d412240be58f208554703a15485aa53efa9
parent03fa195021ede1cdce8762753d9b62f2f41c1b18 (diff)
downloadcanutils-ac8302a72441b03ddf2420b3aaf9a7e7ba5ecbca.tar.gz
set can_id to CAN_FLAG_ALL to receive messages
git-svn-id: https://iocaste.extern.pengutronix.de/svn/canutils/trunks/canutils-1.0-trunk@35 5fd5a299-6ef2-0310-aa18-8b01d7c39d8c
-rw-r--r--canecho.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/canecho.c b/canecho.c
index a13c376..4712e06 100644
--- a/canecho.c
+++ b/canecho.c
@@ -114,6 +114,7 @@ int main(int argc, char **argv)
strcpy(ifr.ifr_name, argv[optind]);
ioctl(s, SIOCGIFINDEX, &ifr);
addr.can_ifindex = ifr.ifr_ifindex;
+ addr.can_id = CAN_FLAG_ALL;
if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
perror("bind");