[OpenWrt-Devel] [PATCH] [netifd] enable MULTICAST on GRE

Hans Dedecker dedeckeh at gmail.com
Sat Aug 15 03:25:24 EDT 2015


On Sat, Aug 15, 2015 at 3:09 AM, Nick Podolak <nicholas.e.podolak at gmail.com>
wrote:

> 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
>
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

Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150815/eb737f9e/attachment.htm>
-------------- next part --------------
_______________________________________________
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