]> The Tcpdump Group git mirrors - tcpdump/commitdiff
from Kevin Steves <[email protected]>:
authorhannes <hannes>
Wed, 17 Jan 2007 17:55:01 +0000 (17:55 +0000)
committerhannes <hannes>
Wed, 17 Jan 2007 17:55:01 +0000 (17:55 +0000)
format the ttl field not with heading whitespaces for ttl < 100 and ttl < 10

print-ip.c

index 0529fa5be3cc629816c57d0fed92b3ac079458f0..e38195c0c35bc7adc58f145852dddf0793f0d479 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.156 2007-01-17 14:07:36 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.157 2007-01-17 17:55:01 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -633,7 +633,7 @@ ip_print(netdissect_options *ndo,
             }
 
             if (ipds->ip->ip_ttl >= 1)
-                (void)printf(", ttl %3u", ipds->ip->ip_ttl);    
+                (void)printf(", ttl %u", ipds->ip->ip_ttl);    
 
            /*
             * for the firewall guys, print id, offset.