]> 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)
committerfxlb <[email protected]>
Tue, 18 Mar 2025 10:35:15 +0000 (10:35 +0000)
l - unsigned longs (32 bits)
L - longs (32 bits)
s - unsigned shorts (16 bits)

[skip ci]

print-bootp.c

index d98e585cacb89529e2c0b81482c7e48a7bc765df..2ae00dced158fea13b2be7dbe0f7f48e0fdffb1e 100644 (file)
@@ -401,9 +401,9 @@ invalid:
  * 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)
@@ -721,7 +721,7 @@ rfc1048_print(netdissect_options *ndo,
                        break;
 
                case 's':
-                       /* shorts */
+                       /* unsigned shorts */
                        while (len >= 2) {
                                if (!first)
                                        ND_PRINT(",");