[PATCH v2 1/2] batman-adv: mcast: detect, distribute and maintain multicast router presence

Sven Eckelmann sven at narfation.org
Sat May 25 12:06:00 CEST 2019


On Tuesday, 7 May 2019 06:20:03 CEST Linus L├╝ssing wrote:
> +static u8 batadv_mcast_mla_rtr_flags_softif_get(struct batadv_priv *bat_priv,
> +                                               struct net_device *bridge)
> +{
> +       struct net_device *dev = bridge ? bridge : bat_priv->soft_iface;
> +       u8 flags = BATADV_NO_FLAGS;
> +       struct inet6_dev *in6_dev;
> +       struct in_device *in_dev;
> +
> +       rcu_read_lock();
> +       in_dev = __in_dev_get_rcu(dev);
> +       if (in_dev && IN_DEV_MFORWARD(in_dev))
> +               flags |= BATADV_MCAST_WANT_ALL_RTR4;
> +
> +       in6_dev = __in6_dev_get(dev);
> +       if (in6_dev && in6_dev->cnf.mc_forwarding)
> +               flags |= BATADV_MCAST_WANT_ALL_RTR6;
> +       rcu_read_unlock();
> +
> +       return flags;
> +}

Fails to build on Linux 5.1 with:

/home/sven/tmp/qemu-batman/batman-adv/net/batman-adv/multicast.c: In function 'batadv_mcast_mla_rtr_flags_softif_get':
/home/sven/tmp/qemu-batman/batman-adv/net/batman-adv/multicast.c:130:30: error: 'struct ipv6_devconf' has no member named 'mc_forwarding'; did you mean 'forwarding'?
  if (in6_dev && in6_dev->cnf.mc_forwarding)
                              ^~~~~~~~~~~~~
                              forwarding

See 
https://git.open-mesh.org/build_test.git/blob/HEAD:/generate_linux_headers.sh 
for the configuration.

Kind regards,
	Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/attachments/20190525/c8a0590b/attachment.sig>


More information about the B.A.T.M.A.N mailing list