The following commit has been merged in the master branch: commit 6a9ccfe25e09115d04248fa22028e3f89c639d90 Author: Marek Lindner lindner_marek@yahoo.de Date: Sun Jun 26 15:32:57 2011 +0200
batctl: tcpdump - tt_data is an unsigned int value and should be printed as such
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
diff --git a/tcpdump.c b/tcpdump.c index 5500899..0e69431 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -284,7 +284,7 @@ static void dump_batman_tt(unsigned char *packet_buff, ssize_t buff_len, int rea printf("BAT %s > ", get_name_by_macaddr((struct ether_addr *)tt_query_packet->src, read_opt));
- printf("%s: TT %s, ttvn %d, %s %d, ttl %2d, v %d, flags [%c%c], length %zu\n", + printf("%s: TT %s, ttvn %d, %s %u, ttl %2d, v %d, flags [%c%c], length %zu\n", get_name_by_macaddr((struct ether_addr *)tt_query_packet->dst, read_opt), tt_desc, tt_query_packet->ttvn, tt_data, ntohs(tt_query_packet->tt_data), tt_query_packet->ttl, tt_query_packet->version,