The following commit has been merged in the master branch: commit 2b6474f4eece2676b0ebff24e99fd679bf2ac651 Author: Marek Lindner lindner_marek@yahoo.de Date: Fri Jan 28 20:06:01 2011 +0100
batctl: tcpdump - support LARGETAIL flag
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
diff --git a/tcpdump.c b/tcpdump.c index 4bff970..8a08bbf 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -384,10 +384,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),