]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipfc.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-ipfc.c
index 358bf0ba24c97bcbd56b422be410b95addb7755c..5df6127c712851e3fa716f2a7db9a180ec1ecb50 100644 (file)
@@ -95,6 +95,7 @@ ipfc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
        struct lladdr_info src, dst;
        int llc_hdrlen;
 
+       ndo->ndo_protocol = "ipfc";
        if (caplen < IPFC_HDRLEN)
                goto trunc;
        /*
@@ -142,5 +143,6 @@ trunc:
 u_int
 ipfc_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 {
+       ndo->ndo_protocol = "ipfc_if";
        return (ipfc_print(ndo, p, h->len, h->caplen));
 }