From db64ddb93ef026ef1c4b05cd08c43349037b24eb Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sun, 17 Aug 2014 19:44:13 +0000 Subject: [PATCH] Better output for fragmented packets. FossilOrigin-Name: 983e94f22cb0c373df89d7585687bffafc64285db8f28d1bfb6f58c0e7819c9d --- src/capwap/hdr_print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/capwap/hdr_print.c b/src/capwap/hdr_print.c index fd17fcb5..62d129ab 100644 --- a/src/capwap/hdr_print.c +++ b/src/capwap/hdr_print.c @@ -85,6 +85,10 @@ int hdr_print(char *str, uint8_t *packet, int len) int bhlen = 4*hlen; + if (CWTH_GET_FLAG_F(packet) && frag_offs!=0){ + s+=sprintf(s,"\tFragment data ..."); + return s-str; + } if (len