]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DHCP: Fix a comment about formats for (un)signed longs/shorts data
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 17 Mar 2025 18:02:56 +0000 (19:02 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 18 Mar 2025 11:03:12 +0000 (12:03 +0100)
l - unsigned longs (32 bits)
L - longs (32 bits)
s - unsigned shorts (16 bits)

(cherry picked from commit 575575a8a8a86a271d38ec7ea467e05eae832545)

[skip ci]

print-bootp.c

index 646e3f333731beb2d7ee8458c11003c7ea392b92..d84ba6f8b48f8cc6fea36eeceb13733c20eefb57 100644 (file)
@@ -394,9 +394,9 @@ trunc:
  * The first character specifies the format to print:
  *     i - ip address (32 bits)
  *     p - ip address pairs (32 bits + 32 bits)
- *     l - long (32 bits)
- *     L - unsigned long (32 bits)
- *     s - short (16 bits)
+ *     l - unsigned longs (32 bits)
+ *     L - longs (32 bits)
+ *     s - unsigned shorts (16 bits)
  *     b - period-separated decimal bytes (variable length)
  *     x - colon-separated hex bytes (variable length)
  *     a - ASCII string (variable length)
@@ -717,7 +717,7 @@ rfc1048_print(netdissect_options *ndo,
                        break;
 
                case 's':
-                       /* shorts */
+                       /* unsigned shorts */
                        while (len >= 2) {
                                if (!first)
                                        ND_PRINT(",");