summaryrefslogtreecommitdiff
path: root/pfinet/ethernet.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-24 01:08:35 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-02-24 01:08:35 +0100
commit9c1bdc1b967b625dba29bdb68aa338f95e705399 (patch)
treef88b369e29795db8ab23633d2fbd890148d9dfe6 /pfinet/ethernet.c
parent21b9f4748d79dd561edcb45bdd0b514d7a0bed84 (diff)
Fix IPv6 by receiving all multicast
* pfinet/ethernet.c (setup_ethernet_device): Add IFF_ALLMULTI to dev->flags.
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r--pfinet/ethernet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c
index dfc2c114..5d080730 100644
--- a/pfinet/ethernet.c
+++ b/pfinet/ethernet.c
@@ -308,6 +308,11 @@ setup_ethernet_device (char *name, struct device **device)
dev->addr_len = ETH_ALEN;
memset (dev->broadcast, 0xff, ETH_ALEN);
dev->flags = IFF_BROADCAST | IFF_MULTICAST;
+
+ /* FIXME: Receive all multicast to fix IPv6, until we implement
+ ethernet_set_multi. */
+ dev->flags |= IFF_ALLMULTI;
+
dev_init_buffers (dev);
ethernet_open (dev);