Skip to content

Commit 575575a

Browse files
committed
DHCP: Fix a comment about formats for (un)signed longs/shorts data
l - unsigned longs (32 bits) L - longs (32 bits) s - unsigned shorts (16 bits) [skip ci]
1 parent e80cc07 commit 575575a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

print-bootp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,9 @@ bootp_print(netdissect_options *ndo,
401401
* The first character specifies the format to print:
402402
* i - ip address (32 bits)
403403
* p - ip address pairs (32 bits + 32 bits)
404-
* l - long (32 bits)
405-
* L - unsigned long (32 bits)
406-
* s - short (16 bits)
404+
* l - unsigned longs (32 bits)
405+
* L - longs (32 bits)
406+
* s - unsigned shorts (16 bits)
407407
* b - period-separated decimal bytes (variable length)
408408
* x - colon-separated hex bytes (variable length)
409409
* a - ASCII string (variable length)
@@ -721,7 +721,7 @@ rfc1048_print(netdissect_options *ndo,
721721
break;
722722

723723
case 's':
724-
/* shorts */
724+
/* unsigned shorts */
725725
while (len >= 2) {
726726
if (!first)
727727
ND_PRINT(",");

0 commit comments

Comments
 (0)