Author: marek Date: 2010-01-20 03:26:20 +0100 (Wed, 20 Jan 2010) New Revision: 1558
Modified: trunk/batctl/tcpdump.c Log: batctl: add PRIMARIES_FIRST_HOP flag support
Modified: trunk/batctl/tcpdump.c =================================================================== --- trunk/batctl/tcpdump.c 2010-01-20 02:26:14 UTC (rev 1557) +++ trunk/batctl/tcpdump.c 2010-01-20 02:26:20 UTC (rev 1558) @@ -264,12 +264,13 @@ 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], length %zu\n", + printf("OGM via neigh %s, seqno %d, 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, batman_packet->ttl, batman_packet->version, + (batman_packet->flags & DIRECTLINK ? 'D' : '.'), (batman_packet->flags & VIS_SERVER ? 'V' : '.'), - (batman_packet->flags & DIRECTLINK ? 'D' : '.'), + (batman_packet->flags & PRIMARIES_FIRST_HOP ? 'F' : '.'), (size_t)buff_len - sizeof(struct ether_header)); }