]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ppi.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-ppi.c
index 09cac11e81fd5d730a11c5728a73eac7f7239659..c58a3627b67d88a238685d13ad00d3884e2def40 100644 (file)
@@ -64,6 +64,7 @@ ppi_print(netdissect_options *ndo,
        uint32_t hdrlen;
        struct pcap_pkthdr nhdr;
 
+       ndo->ndo_protocol = "ppi";
        if (caplen < sizeof(ppi_header_t)) {
                ND_PRINT(" %s", tstr);
                return (caplen);
@@ -122,6 +123,7 @@ u_int
 ppi_if_print(netdissect_options *ndo,
             const struct pcap_pkthdr *h, const u_char *p)
 {
+       ndo->ndo_protocol = "ppi_if";
        return (ppi_print(ndo, h, p));
 }