All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - support LARGETAIL flag
@ 2011-01-26 14:28 Marek Lindner
  2011-01-28 20:06 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Lindner @ 2011-01-26 14:28 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Marek Lindner

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 batctl/tcpdump.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/batctl/tcpdump.c b/batctl/tcpdump.c
index bdf81bc..09a7e16 100644
--- a/batctl/tcpdump.c
+++ b/batctl/tcpdump.c
@@ -385,10 +385,11 @@ static void dump_batman_frag(unsigned char *packet_buff, ssize_t buff_len, int r
 	printf("BAT %s > ",
 	       get_name_by_macaddr((struct ether_addr *)unicast_frag_packet->orig, read_opt));
 
-	printf("%s: FRAG, seq %hu, ttl %hhu, flags [%c], ",
+	printf("%s: FRAG, seq %hu, ttl %hhu, flags [%c%c], ",
 	       get_name_by_macaddr((struct ether_addr *)unicast_frag_packet->dest, read_opt),
 	       ntohs(unicast_frag_packet->seqno), unicast_frag_packet->ttl,
-	       (unicast_frag_packet->flags & UNI_FRAG_HEAD ? 'H' : '.'));
+	       (unicast_frag_packet->flags & UNI_FRAG_HEAD ? 'H' : '.'),
+	       (unicast_frag_packet->flags & UNI_FRAG_LARGETAIL ? 'L' : '.'));
 
 	if (unicast_frag_packet->flags & UNI_FRAG_HEAD)
 		parse_eth_hdr(packet_buff + ETH_HLEN + sizeof(struct unicast_frag_packet),
-- 
1.7.2.3


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

* Re: [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - support LARGETAIL flag
  2011-01-26 14:28 [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - support LARGETAIL flag Marek Lindner
@ 2011-01-28 20:06 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-01-28 20:06 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Wednesday 26 January 2011 15:28:33 Marek Lindner wrote:
> -	printf("%s: FRAG, seq %hu, ttl %hhu, flags [%c], ",
> +	printf("%s: FRAG, seq %hu, ttl %hhu, flags [%c%c], ",
>  	       get_name_by_macaddr((struct ether_addr
> *)unicast_frag_packet->dest, read_opt), ntohs(unicast_frag_packet->seqno),

Applied in revision 1917.

Regards,
Marek

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

end of thread, other threads:[~2011-01-28 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 14:28 [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - support LARGETAIL flag Marek Lindner
2011-01-28 20:06 ` Marek Lindner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.