From: hannes Date: Thu, 15 May 2003 15:25:18 +0000 (+0000) Subject: minor display cosmetics: X-Git-Tag: tcpdump-3.8-bp~142 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/63c668cbeb35cfecfb31bd35c55b2df7737d5c07 minor display cosmetics: print 3-digit ttl field in print-ip.c unbracketize the LCP id in print-ppp.c --- diff --git a/print-ip.c b/print-ip.c index 19edb1a3..91d73a98 100644 --- a/print-ip.c +++ b/print-ip.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.122 2003-05-08 14:26:54 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.123 2003-05-15 15:25:18 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -412,7 +412,7 @@ ip_print(register const u_char *bp, register u_int length) } if (ip->ip_ttl >= 1) - (void)printf(", ttl %u", ip->ip_ttl); + (void)printf(", ttl %3u", ip->ip_ttl); /* * for the firewall guys, print id, offset. diff --git a/print-ppp.c b/print-ppp.c index fb8424ad..079c1d0e 100644 --- a/print-ppp.c +++ b/print-ppp.c @@ -31,7 +31,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.82 2003-05-11 08:59:22 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ppp.c,v 1.83 2003-05-15 15:25:19 hannes Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -388,7 +388,7 @@ handle_ctrl_proto(u_int proto, const u_char *pptr, int length) code = *tptr++; - printf("%s (%u)", + printf("%s, id %u", tok2str(cpcodes, "Unknown Opcode 0x%02x",code), *tptr++); /* ID */