relay multicast packets along with broadcast packets
authorFelix Fietkau <nbd@openwrt.org>
Fri, 13 Jun 2014 10:09:04 +0000 (12:09 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 13 Jun 2014 10:09:04 +0000 (12:09 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
main.c

diff --git a/main.c b/main.c
index e2886ded34ae7986cc8ab991c3f402f08efa688e..801d2f2a7ff44a4973d13d63778a4890cb796ccb 100644 (file)
--- a/main.c
+++ b/main.c
@@ -586,7 +586,7 @@ static int init_interface(struct relayd_interface *rif)
        }
 
 #ifdef PACKET_RECV_TYPE
-       pkt_type = (1 << PACKET_BROADCAST);
+       pkt_type = (1 << PACKET_BROADCAST) | (1 << PACKET_MULTICAST);
        setsockopt(fd, SOL_PACKET, PACKET_RECV_TYPE, &pkt_type, sizeof(pkt_type));
 #endif