Author: marek Date: 2010-08-01 17:22:38 +0200 (Sun, 01 Aug 2010) New Revision: 1754
Modified: trunk/batctl/tcpdump.c Log: batctl: tcpdump - show ogm gateway flags
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
Modified: trunk/batctl/tcpdump.c =================================================================== --- trunk/batctl/tcpdump.c 2010-08-01 14:31:56 UTC (rev 1753) +++ trunk/batctl/tcpdump.c 2010-08-01 15:22:38 UTC (rev 1754) @@ -262,13 +262,14 @@ printf("BAT %s: ", get_name_by_macaddr((struct ether_addr *)batman_packet->orig, read_opt));
- printf("OGM via neigh %s, seq %u, tq %3d, ttl %2d, v %d, flags [%c%c%c], length %zu\n", + printf("OGM via neigh %s, seq %u, tq %3d, ttl %2d, v %d, flags [%c%c%c%c], length %zu\n", get_name_by_macaddr((struct ether_addr *)ether_header->ether_shost, read_opt), ntohl(batman_packet->seqno), batman_packet->tq, batman_packet->ttl, batman_packet->version, (batman_packet->flags & DIRECTLINK ? 'D' : '.'), (batman_packet->flags & VIS_SERVER ? 'V' : '.'), (batman_packet->flags & PRIMARIES_FIRST_HOP ? 'F' : '.'), + (batman_packet->gw_flags ? 'G' : '.'), (size_t)buff_len - sizeof(struct ether_header)); }