Signed-off-by: Marek Lindner <[email protected]>
---
 batctl/tcpdump.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/batctl/tcpdump.c b/batctl/tcpdump.c
index bdf81bc..09a7e16 100644
--- a/batctl/tcpdump.c
+++ b/batctl/tcpdump.c
@@ -385,10 +385,11 @@ static void dump_batman_frag(unsigned char *packet_buff, 
ssize_t buff_len, int r
        printf("BAT %s > ",
               get_name_by_macaddr((struct ether_addr 
*)unicast_frag_packet->orig, read_opt));
 
-       printf("%s: FRAG, seq %hu, ttl %hhu, flags [%c], ",
+       printf("%s: FRAG, seq %hu, ttl %hhu, flags [%c%c], ",
               get_name_by_macaddr((struct ether_addr 
*)unicast_frag_packet->dest, read_opt),
               ntohs(unicast_frag_packet->seqno), unicast_frag_packet->ttl,
-              (unicast_frag_packet->flags & UNI_FRAG_HEAD ? 'H' : '.'));
+              (unicast_frag_packet->flags & UNI_FRAG_HEAD ? 'H' : '.'),
+              (unicast_frag_packet->flags & UNI_FRAG_LARGETAIL ? 'L' : '.'));
 
        if (unicast_frag_packet->flags & UNI_FRAG_HEAD)
                parse_eth_hdr(packet_buff + ETH_HLEN + sizeof(struct 
unicast_frag_packet),
-- 
1.7.2.3

Reply via email to