]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sll.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-sll.c
index 24dc2d46939cdfedcadbc128e46862e4bea4788b..0e570bf6cd08f54f61b16a14bd52880a93d9a295 100644 (file)
@@ -134,6 +134,7 @@ sll_print(netdissect_options *ndo, const struct sll_header *sllp, u_int length)
 {
        u_short ether_type;
 
+       ndo->ndo_protocol = "sll";
         ND_PRINT("%3s ",tok2str(sll_pkttype_values,"?",EXTRACT_BE_U_2(sllp->sll_pkttype)));
 
        /*
@@ -200,6 +201,7 @@ sll_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
        int llc_hdrlen;
        u_int hdrlen;
 
+       ndo->ndo_protocol = "sll_if";
        if (caplen < SLL_HDR_LEN) {
                /*
                 * XXX - this "can't happen" because "pcap-linux.c" always