]> 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)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 18 Mar 2025 11:03:18 +0000 (12:03 +0100)
Option 91 time (RFC 4388) is unsigned, thus use 'l'.

(cherry picked from commit 7328aad0c945e4aac6ee1e79b596f616474860c4)

print-bootp.c

index d84ba6f8b48f8cc6fea36eeceb13733c20eefb57..a1781da6df65dc3eb4956afaf678514e1c96f5fb 100644 (file)
@@ -511,7 +511,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' */