[PATCH batadv v2] batman-adv: dat: fix printing of unknown 4addr subtype
Sven Eckelmann <[email protected]>
| Newsgroups | org.open-mesh.lists.batman |
|---|---|
| Message-ID | <20260806-4addr-unknown-subtype-print-v2-1-26d1700f01ff@narfation.org> |
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(-) diff --git a/net/batman-adv/distributed-arp-table.c b/net/batman-adv/distributed-arp-table.c index 011cfdc4..270f8d6e 100644 --- a/net/batman-adv/distributed-arp-table.c +++ b/net/batman-adv/distributed-arp-table.c @@ -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, -- Sven Eckelmann <[email protected]>