]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-enc.c
OSPF: Use %zu to print sizeof values
[tcpdump] / print-enc.c
index aeacd6c6818a752cfdcd4ac5c3ca5dd4a743c17b..8406caad1718914bed7d85d081c0e30df81dda96 100644 (file)
@@ -105,11 +105,11 @@ enc_if_print(netdissect_options *ndo,
 
        ndo->ndo_protocol = "enc";
        if (caplen < ENC_HDRLEN) {
-               ndo->ndo_ll_header_length += caplen;
+               ndo->ndo_ll_hdr_len += caplen;
                nd_print_trunc(ndo);
                return;
        }
-       ndo->ndo_ll_header_length += ENC_HDRLEN;
+       ndo->ndo_ll_hdr_len += ENC_HDRLEN;
 
        hdr = (const struct enchdr *)p;
        /*
@@ -160,6 +160,4 @@ enc_if_print(netdissect_options *ndo,
                ip6_print(ndo, p, length);
                break;
        }
-
-       return;
 }