Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: add multicast flags netlink support

2018-03-04 Thread Sven Eckelmann
On Dienstag, 27. Februar 2018 09:10:16 CET Linus Lüssing wrote: > + if (nla_put_u8(msg, BATADV_ATTR_MCAST_FLAGS, flags) || > + nla_put_u8(msg, BATADV_ATTR_MCAST_FLAGS_PRIV, flags_priv)) > + return -EMSGSIZE; Are you sure that 8 flags are enough for the future? Not

Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: add multicast flags netlink support

2018-03-04 Thread Sven Eckelmann
On Dienstag, 27. Februar 2018 09:10:16 CET Linus Lüssing wrote: > diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c > index 6eaffe50..0578c1d6 100644 > --- a/net/batman-adv/multicast.c > +++ b/net/batman-adv/multicast.c > @@ -52,14 +52,20 @@ > #include > #include > #include

[B.A.T.M.A.N.] [PATCH 2/2] batman-adv: add multicast flags netlink support

2018-02-27 Thread Linus Lüssing
Dump the list of multicast flags entries via the netlink socket. Signed-off-by: Linus Lüssing --- include/uapi/linux/batman_adv.h | 62 +++ net/batman-adv/multicast.c | 236 net/batman-adv/multicast.h | 18