Author: marek Date: 2010-05-21 06:17:53 +0200 (Fri, 21 May 2010) New Revision: 1662
Modified: trunk/batctl/tcpdump.c Log: batctl: adjust tcpdump to expanded ogm seqno
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
Modified: trunk/batctl/tcpdump.c =================================================================== --- trunk/batctl/tcpdump.c 2010-05-21 04:17:52 UTC (rev 1661) +++ trunk/batctl/tcpdump.c 2010-05-21 04:17:53 UTC (rev 1662) @@ -264,9 +264,9 @@ printf("BAT %s: ", get_name_by_macaddr((struct ether_addr *)batman_packet->orig, read_opt));
- printf("OGM via neigh %s, seqno %d, tq %3d, ttl %2d, v %d, flags [%c%c%c], length %zu\n", + printf("OGM via neigh %s, seqno %u, tq %3d, ttl %2d, v %d, flags [%c%c%c], length %zu\n", get_name_by_macaddr((struct ether_addr *)ether_header->ether_shost, read_opt), - ntohs(batman_packet->seqno), batman_packet->tq, + ntohl(batman_packet->seqno), batman_packet->tq, batman_packet->ttl, batman_packet->version, (batman_packet->flags & DIRECTLINK ? 'D' : '.'), (batman_packet->flags & VIS_SERVER ? 'V' : '.'),