tcpdump mailing list archives

print-ip.c: why print ttl with %3u ?


From: Kevin Steves <stevesk () pobox com>
Date: Sun, 14 Jan 2007 14:20:41 -0800

this seems nicer without extra spaces.

Index: print-ip.c
===================================================================
RCS file: /tcpdump/master/tcpdump/print-ip.c,v
retrieving revision 1.155
diff -u -r1.155 print-ip.c
--- print-ip.c  19 Feb 2006 05:00:19 -0000      1.155
+++ print-ip.c  14 Jan 2007 22:17:53 -0000
@@ -633,7 +633,7 @@
             }
 
             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.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: