batman-adv: dat: drop non-4addr backwards compatibility
Sven Eckelmann
maintainerPATCH 1/1 batman-adv: dat: drop non-4addr backwards compatibility
The 4addr unicast packet support is mandatory in compat version 15. No older compat version is supported and the kernel doesn't need to keep code to talk to nodes which cannot be in the same mesh.
Signed-off-by Sven Eckelmann <[email protected]>
--- net/batman-adv/distributed-arp-table.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
net/batman-adv/distributed-arp-table.c +3 -11
@@ -1372,17 +1372,9 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,if (!skb_new) goto out; -/* To preserve backwards compatibility, the node has choose the outgoing -* format based on the incoming request packet type. The assumption is -* that a node not using the 4addr packet format doesn't support it. -*/ -if (hdr_size ==sizeof (struct batadv_unicast_4addr_packet )) - err =batadv_send_skb_via_tt_4addr (bat_priv, skb_new, -BATADV_P_DAT_CACHE_REPLY , -NULL , vid); -else - err =batadv_send_skb_via_tt (bat_priv, skb_new,NULL , vid); - + err =batadv_send_skb_via_tt_4addr (bat_priv, skb_new, +BATADV_P_DAT_CACHE_REPLY , +NULL , vid);if (err !=NET_XMIT_DROP ) {batadv_inc_counter (bat_priv,BATADV_CNT_DAT_CACHED_REPLY_TX ); ret = true;
---
base-commit: 22b12d005035f37f898e5bf80480719fe1ef4fba
change-id: 20260702-dat-drop-non-4addr-fa818e01e487
Best regards,
Signature · 1 line
Sven Eckelmann <[email protected]>
Quoted 5 lines · Sven Eckelmann
The 4addr unicast packet support is mandatory in compat version 15. No older compat version is supported and the kernel doesn't need to keep code to talk to nodes which cannot be in the same mesh.
Signed-off-by Sven Eckelmann <[email protected]>
Signature · 1 line
Antonio Quartulli