]> The Tcpdump Group git mirrors - tcpdump/commitdiff
minor display cosmetics:
authorhannes <hannes>
Thu, 15 May 2003 15:25:18 +0000 (15:25 +0000)
committerhannes <hannes>
Thu, 15 May 2003 15:25:18 +0000 (15:25 +0000)
  print 3-digit ttl field in print-ip.c
  unbracketize the LCP id in print-ppp.c

print-ip.c
print-ppp.c

index 19edb1a35339cba60fd3359d3863fc8dea8be0a9..91d73a98142fbb4a0b341066f45adb34d0cc28f9 100644 (file)
@@ -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.
index fb8424ad8243a616ccacf0e50657fdc28ee5ec37..079c1d0e34c8fceab8469a13c2fe31539b9880ab 100644 (file)
@@ -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 */