b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - display tt_crc field which is part of the OGM packet
@ 2011-06-06  9:40 Marek Lindner
  2011-06-08 11:04 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Lindner @ 2011-06-06  9:40 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Marek Lindner

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 tcpdump.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tcpdump.c b/tcpdump.c
index 85d461e..4e09274 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -315,15 +315,15 @@ static void dump_batman_ogm(unsigned char *packet_buff, ssize_t buff_len, int re
 	printf("BAT %s: ",
 	       get_name_by_macaddr((struct ether_addr *)batman_packet->orig, read_opt));
 
-	printf("OGM via neigh %s, seq %u, tq %3d, ttvn %d, 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->ttvn,
-	        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));
+	printf("OGM via neigh %s, seq %u, tq %3d, ttvn %d, ttcrc %d, 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->ttvn,
+	       ntohl(batman_packet->tt_crc), 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));
 }
 
 static void dump_batman_icmp(unsigned char *packet_buff, ssize_t buff_len, int read_opt, int time_printed)
-- 
1.7.5.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - display tt_crc field which is part of the OGM packet
  2011-06-06  9:40 [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - display tt_crc field which is part of the OGM packet Marek Lindner
@ 2011-06-08 11:04 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-06-08 11:04 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Monday, June 06, 2011 11:40:46 AM Marek Lindner wrote:
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---
>  tcpdump.c |   18 +++++++++---------
>  1 files changed, 9 insertions(+), 9 deletions(-)

Applied in revision 1c6d3d7.

Regards,
Marek

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-08 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06  9:40 [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - display tt_crc field which is part of the OGM packet Marek Lindner
2011-06-08 11:04 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).