From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 2 Apr 2013 16:41:31 +0800 References: <1364760198-17043-1-git-send-email-ordex@autistici.org> <1364760198-17043-2-git-send-email-ordex@autistici.org> In-Reply-To: <1364760198-17043-2-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201304021641.31457.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batctl: tcpdump - print subtype for UNICAST4ADDR packets Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Monday, April 01, 2013 04:03:18 Antonio Quartulli wrote: > Signed-off-by: Antonio Quartulli > --- > tcpdump.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tcpdump.c b/tcpdump.c > index 39239dd..bf4edd4 100644 > --- a/tcpdump.c > +++ b/tcpdump.c > @@ -562,7 +562,8 @@ static void dump_batman_4addr(unsigned char > *packet_buff, ssize_t buff_len, int > > printf("%s: 4ADDR, subtype %d, ttvn %d, ttl %hhu, ", > get_name_by_macaddr((struct ether_addr *)unicast_4addr_packet->u.dest, read_opt), > - unicast_4addr_packet->u.ttvn, unicast_4addr_packet->u.header.ttl); > + unicast_4addr_packet->subtype, unicast_4addr_packet->u.ttvn, > + unicast_4addr_packet->u.header.ttl); > You added the subtype printf format string with the previous patch already. You might want to fix this. Cheers, Marek