tcpdump mailing list archives
Re: print-ip.c: why print ttl with %3u ?
From: Hannes Gredler <hannes () juniper net>
Date: Wed, 17 Jan 2007 15:04:43 +0100
but it removes all trailing columns (ip addresses) and makes things more unreadable ... On Sun, Jan 14, 2007 at 02:20:41PM -0800, Kevin Steves wrote: | 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. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- print-ip.c: why print ttl with %3u ? Kevin Steves (Jan 14)
- Re: print-ip.c: why print ttl with %3u ? Hannes Gredler (Jan 17)
- Re: print-ip.c: why print ttl with %3u ? Kevin Steves (Jan 17)
- Re: print-ip.c: why print ttl with %3u ? Hannes Gredler (Jan 17)
- Re: print-ip.c: why print ttl with %3u ? Guy Harris (Jan 17)
- Re: print-ip.c: why print ttl with %3u ? Hannes Gredler (Jan 17)
- Re: print-ip.c: why print ttl with %3u ? Kevin Steves (Jan 17)
- Re: print-ip.c: why print ttl with %3u ? Hannes Gredler (Jan 17)