batman-adv: dat: fix printing of unknown 4addr subtype
Sven Eckelmann
maintainerPATCH v2 1/1 batman-adv: dat: fix printing of unknown 4addr subtype
If an unknown subtype of an unicast 4addr packets was detected in batadv_dbg_arp(), it is printing the (known) packet_type instead of the subtype. This must be switched to the subtype to have any kind of use for the reader of the debug message.
Reported-by Sashiko <[email protected]>
Signed-off-by Sven Eckelmann <[email protected]>
---
Changes in v2:
- fix incorrect structure
- Link to v1: https://patch.msgid.link/20260806-4addr-unknown-subtype-print-v1-1-e906357a5895@narfation.org
--- net/batman-adv/distributed-arp-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/distributed-arp-table.c +1 -1
@@ -548,7 +548,7 @@ static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb,break ;default :batadv_dbg (BATADV_DBG_DAT , bat_priv,"* type: Unknown (%u)!\n" , - unicast_4addr_packet->u.packet_type); + unicast_4addr_packet->subtype); }break ;case BATADV_BCAST :
---
base-commit: 979765fe212e92b34a1627998820a9c3aaea6424
change-id: 20260806-4addr-unknown-subtype-print-e1a9fada1a84
Best regards,
Signature · 1 line
Sven Eckelmann <[email protected]>