The unicast-4addr packet dump prints the field label as "subtybe"
instead of "subtype".

Fixes: 02921f7519a2 ("batctl: tcpdump - print subtype for UNICAST4ADDR packets")
Signed-off-by: Sven Eckelmann <[email protected]>
---
 tcpdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tcpdump.c b/tcpdump.c
index 7769cbf..a48f8ad 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1184,7 +1184,7 @@ static void dump_batman_4addr(unsigned char *packet_buff, 
ssize_t buff_len,
        printf("BAT %s > ",
               get_name_by_macaddr((struct ether_addr 
*)ether_header->ether_shost, read_opt));
 
-       printf("%s: 4ADDR, subtybe %hhu, ttvn %d, ttl %hhu, ",
+       printf("%s: 4ADDR, subtype %hhu, ttvn %d, ttl %hhu, ",
               get_name_by_macaddr((struct ether_addr 
*)unicast_4addr_packet->u.dest, read_opt),
               unicast_4addr_packet->subtype, unicast_4addr_packet->u.ttvn,
               unicast_4addr_packet->u.ttl);

-- 
2.47.3

Reply via email to