]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DHCP: Fix print format for client-last-transaction-time option
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 18 Mar 2025 06:35:50 +0000 (07:35 +0100)
committerfxlb <[email protected]>
Tue, 18 Mar 2025 10:35:15 +0000 (10:35 +0000)
Option 91 time (RFC 4388) is unsigned, thus use 'l'.

print-bootp.c

index 2ae00dced158fea13b2be7dbe0f7f48e0fdffb1e..6624ceee359b52567858784fa319de2df4562c58 100644 (file)
@@ -518,7 +518,7 @@ static const struct tok tag2str[] = {
        { TAG_TZ_STRING,        "aTZSTR" },
        { TAG_FQDN_OPTION,      "bFQDNS" },     /* XXX 'b' */
        { TAG_AUTH,             "bAUTH" },      /* XXX 'b' */
-       { TAG_CLIENT_LAST_TRANSACTION_TIME, "LLast-Transaction-Time" },
+       { TAG_CLIENT_LAST_TRANSACTION_TIME, "lLast-Transaction-Time" },
        { TAG_ASSOCIATED_IP,    "iAssociated-IP" },
        { TAG_CLIENT_ARCH,      "sARCH" },
        { TAG_CLIENT_NDI,       "bNDI" },       /* XXX 'b' */