From patchwork Wed Jan 26 14:28:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 714 Return-Path: Received: from nm8-vm0.bullet.mail.ukl.yahoo.com (nm8-vm0.bullet.mail.ukl.yahoo.com [217.146.183.238]) by open-mesh.org (Postfix) with SMTP id 90588154235 for ; Wed, 26 Jan 2011 15:32:11 +0100 (CET) Received: from [217.146.183.181] by nm8.bullet.mail.ukl.yahoo.com with NNFMP; 26 Jan 2011 14:32:10 -0000 Received: from [77.238.184.77] by tm12.bullet.mail.ukl.yahoo.com with NNFMP; 26 Jan 2011 14:32:10 -0000 Received: from [127.0.0.1] by smtp146.mail.ukl.yahoo.com with NNFMP; 26 Jan 2011 14:32:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1296052330; bh=j6BVSqrU+jNFhiASc/Yvsl92qmB+qEsGxgrMdvJnmRc=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=S1WAOkj4R4vLyZuwx7GLxP7dGWcOAFGpJo7UDivgXCpCZs378FONpOm8HrWpM0lW27h+0us4rrqR4bm+6/22xqYVEjs6TuGKkSYh6frA3aiyE0DSqOgKJbPkdNqXNQANiJnv6IKKqeyWWV7IpIBGJehQ5c7qQWMve4K59kxiDSk= X-Yahoo-Newman-Id: 318318.56830.bm@smtp146.mail.ukl.yahoo.com Received: from localhost (lindner_marek@81.57.254.118 with plain) by smtp146.mail.ukl.yahoo.com with SMTP; 26 Jan 2011 14:32:06 +0000 GMT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: gEsXq0UVM1nZfeR8OP3QJTIZ1QQuTwYm1JHAMRLqcPAYxbS onGAQuP682HobycshdWMZFRbc5IrBiB9zZlD0TQpwIlNNYzDV4CmxGlaTZDP SWDojd1o.vXiYVH.n6Ym7bxMVtMGIBG3BsmeRehKqnIDZzqdfKZrqI7byJRB HoMaLxe4vX.4QwW21m0NtmOBJHXEkgdLpHUo418TGjPXDHsfpkkUl12faVfu cZLrrh351hwFjmk2Twec02MU_9u3IJJTFfdLuEXRPxembWeEykIk_k0TnO1L y2FcpJ5Sk6UsqxgA- X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 26 Jan 2011 15:28:33 +0100 Message-Id: <1296052113-5983-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.2.3 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batctl: tcpdump - support LARGETAIL flag X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list 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: , X-List-Received-Date: Wed, 26 Jan 2011 14:32:11 -0000 Signed-off-by: Marek Lindner --- 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),