batman-adv: tvlv: prepare for tvlv enabled multicast packet type
authorLinus Lüssing <linus.luessing@c0d3.blue>
Tue, 27 Dec 2022 19:34:06 +0000 (20:34 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sat, 21 Jan 2023 18:01:59 +0000 (19:01 +0100)
commit0c4061c0d0e2c381ffe4d8b7c62ea69ad8132071
treebcb7aa1421e24515fdc0a063f6403b6d1b49c340
parente7d6127b89a93f0711a653f06863c3a03d33265f
batman-adv: tvlv: prepare for tvlv enabled multicast packet type

Prepare TVLV infrastructure for more packet types, in particular the
upcoming batman-adv multicast packet type.

For that swap the OGM vs. unicast-tvlv packet boolean indicator to an
explicit unsigned integer packet type variable. And provide the skb
to a call to batadv_tvlv_containers_process(), as later the multicast
packet's TVLV handler will need to have access not only to the TVLV but
the full skb for forwarding. Forwarding will be invoked from the
multicast packet's TVLVs' contents later.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
include/uapi/linux/batadv_packet.h
net/batman-adv/bat_v_ogm.c
net/batman-adv/distributed-arp-table.c
net/batman-adv/gateway_common.c
net/batman-adv/multicast.c
net/batman-adv/network-coding.c
net/batman-adv/routing.c
net/batman-adv/translation-table.c
net/batman-adv/tvlv.c
net/batman-adv/tvlv.h
net/batman-adv/types.h