]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipnet.c
OpenFlow: Have a function for each message type.
[tcpdump] / print-ipnet.c
index f958d42c032918d705f25aeb4c78cad609bbd480..0f745d70dfef064115dd3c4ccf19a8ae73d24d41 100644 (file)
@@ -66,11 +66,11 @@ ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen
        const ipnet_hdr_t *hdr;
 
        if (caplen < sizeof(ipnet_hdr_t)) {
-               ndo->ndo_ll_header_length += caplen;
+               ndo->ndo_ll_hdr_len += caplen;
                nd_print_trunc(ndo);
                return;
        }
-       ndo->ndo_ll_header_length += sizeof(ipnet_hdr_t);
+       ndo->ndo_ll_hdr_len += sizeof(ipnet_hdr_t);
 
        if (ndo->ndo_eflag)
                ipnet_hdr_print(ndo, p, length);
@@ -99,7 +99,6 @@ ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen
                        ND_DEFAULTPRINT(p, caplen);
                break;
        }
-       return;
 }
 
 /*