X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64e8f9a9ed91a3cbfa8e66367f87ef50a1d62b99..532ef3e8aaf700fdb5e9dec13d37ed21897bf4f9:/print-token.c diff --git a/print-token.c b/print-token.c index 6a323308..38f56eae 100644 --- a/print-token.c +++ b/print-token.c @@ -242,9 +242,9 @@ token_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen * 'h->len' is the length of the packet off the wire, and 'h->caplen' * is the number of bytes actually captured. */ -u_int +void token_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p) { - ndo->ndo_protocol = "token_if"; - return (token_print(ndo, p, h->len, h->caplen)); + ndo->ndo_protocol = "token"; + ndo->ndo_ll_hdr_len += token_print(ndo, p, h->len, h->caplen); }