]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-chdlc.c
CHDLC: Update the link-layer dissector to a void function
[tcpdump] / print-chdlc.c
index 5437c657bdc0d5e617c2e458b6da2e6c23b8b1e8..954dbaeb01f6e58915b554a80876804f91fe4f42 100644 (file)
@@ -44,11 +44,11 @@ static const struct tok chdlc_cast_values[] = {
 
 
 /* Standard CHDLC printer */
-u_int
+void
 chdlc_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 {
-       ndo->ndo_protocol = "chdlc_if";
-       return chdlc_print(ndo, p, h->len);
+       ndo->ndo_protocol = "chdlc";
+       ndo->ndo_ll_hdr_len += chdlc_print(ndo, p, h->len);
 }
 
 u_int