tcpdump mailing list archives

print-bootp.c: don't print spaces in flags field


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

0) don't print spaces in [ flags ]
1) some whitespace cleanup in that area

Index: print-bootp.c
===================================================================
RCS file: /tcpdump/master/tcpdump/print-bootp.c,v
retrieving revision 1.83
diff -u -r1.83 print-bootp.c
--- print-bootp.c       14 Jan 2007 21:29:22 -0000      1.83
+++ print-bootp.c       14 Jan 2007 22:25:26 -0000
@@ -100,10 +100,10 @@
        if (bp->bp_secs)
                printf(", secs %d", EXTRACT_16BITS(&bp->bp_secs));
 
-       printf(", Flags [ %s ]",
-              bittok2str(bootp_flag_values, "none", EXTRACT_16BITS(&bp->bp_flags)));
-       if (vflag>1)
-         printf( " (0x%04x)", EXTRACT_16BITS(&bp->bp_flags));
+       printf(", Flags [%s]",
+               bittok2str(bootp_flag_values, "none", EXTRACT_16BITS(&bp->bp_flags)));
+       if (vflag > 1)
+               printf(" (0x%04x)", EXTRACT_16BITS(&bp->bp_flags));
 
        /* Client's ip address */
        TCHECK(bp->bp_ciaddr);
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: