From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Marek Lindner <lindner_marek@yahoo.de>
Subject: [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - display tt_crc field which is part of the OGM packet
Date: Mon, 6 Jun 2011 11:40:46 +0200 [thread overview]
Message-ID: <1307353246-17441-1-git-send-email-lindner_marek@yahoo.de> (raw)
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
next reply other threads:[~2011-06-06 9:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 9:40 Marek Lindner [this message]
2011-06-08 11:04 ` [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - display tt_crc field which is part of the OGM packet Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307353246-17441-1-git-send-email-lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox