[OpenWrt-Devel] [PATCH] [netifd] enable MULTICAST on GRE
Nick Podolak
nicholas.e.podolak at gmail.com
Fri Aug 14 21:09:14 EDT 2015
This patch enables multicast by for gre tunnels. I've only ever used
GRE to enable routing algorithms and other multicast applications over
otherwise non-multicast capable links (wan, ipsec) so this default
behavior makes more sense to me.
Signed-off-by: Nicholas Podolak <nicholas.e.podolak at gmail.com>
Index: netifd-2015-06-08/system-linux.c
===================================================================
--- netifd-2015-06-08.orig/system-linux.c
+++ netifd-2015-06-08/system-linux.c
@@ -2063,8 +2063,11 @@ static int system_add_gre_tunnel(const c
nla_nest_end(nlm, infodata);
nla_nest_end(nlm, linkinfo);
- return system_rtnl_call(nlm);
+ ret = system_rtnl_call(nlm);
+ system_if_flags(name, IFF_MULTICAST, 0);
+
+ return ret;
failure:
nlmsg_free(nlm);
return ret;
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list