]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
NFLOG: fix error message
[tcpdump] / print-tcp.c
index aedc666115a4af1b9012cbe3a83b42b4e9fb8138..713778a07ca307fcaabe9029112cf43c6bb4fd2b 100644 (file)
@@ -488,7 +488,7 @@ tcp_print(register const u_char *bp, register u_int length,
 #define LENCHECK(l) { if ((l) > hlen) goto bad; TCHECK2(*cp, l); }
 
 
-                        printf("%s", tok2str(tcp_option_values, "Unknown Option %u", opt));
+                        printf("%s", tok2str(tcp_option_values, "unknown-%u", opt));
 
                         switch (opt) {
 
@@ -654,6 +654,8 @@ tcp_print(register const u_char *bp, register u_int length,
 
                         default:
                                 datalen = len - 2;
+                                if (datalen)
+                                        printf(" 0x");
                                 for (i = 0; i < datalen; ++i) {
                                         LENCHECK(i);
                                         (void)printf("%02x", cp[i]);