<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 15, 2015 at 3:09 AM, Nick Podolak <span dir="ltr"><<a href="mailto:nicholas.e.podolak@gmail.com" target="_blank">nicholas.e.podolak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This patch enables multicast by for gre tunnels. I've only ever used<br>
GRE to enable routing algorithms and other multicast applications over<br>
otherwise non-multicast capable links (wan, ipsec) so this default<br>
behavior makes more sense to me.<br>
<br>
Signed-off-by: Nicholas Podolak <<a href="mailto:nicholas.e.podolak@gmail.com">nicholas.e.podolak@gmail.com</a>><br>
<br>
Index: netifd-2015-06-08/system-linux.c<br>
===================================================================<br>
--- netifd-2015-06-08.orig/system-linux.c<br>
+++ netifd-2015-06-08/system-linux.c<br>
@@ -2063,8 +2063,11 @@ static int system_add_gre_tunnel(const c<br>
nla_nest_end(nlm, infodata);<br>
nla_nest_end(nlm, linkinfo);<br>
<br>
- return system_rtnl_call(nlm);<br>
+ ret = system_rtnl_call(nlm);<br>
<br>
+ system_if_flags(name, IFF_MULTICAST, 0);<br>
+<br>
+ return ret;<br>
failure:<br>
nlmsg_free(nlm);<br>
return ret;<br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div>It would be better to make this a device setting like promiscuous mode,macaddr, etc ... so it can be configured via UCI for every device and thus not only restricted for GRE<br><br></div><div class="gmail_extra">Hans<br></div></div>