From: Felix Fietkau Date: Fri, 13 Jun 2014 10:09:04 +0000 (+0200) Subject: relay multicast packets along with broadcast packets X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frelayd.git;a=commitdiff_plain;h=713258fb9a466204040f137586ffdfc2a1290332 relay multicast packets along with broadcast packets Signed-off-by: Felix Fietkau --- diff --git a/main.c b/main.c index e2886de..801d2f2 100644 --- 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