]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lane.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-lane.c
index aaa242c7a7c1623b59124361239cc1896b70a995..c9acd446b2fb82136a8d3615a4a3adea37c56e26 100644 (file)
@@ -84,6 +84,7 @@ lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
 {
        const struct lane_controlhdr *lec;
 
+       ndo->ndo_protocol = "lane";
        if (caplen < sizeof(struct lane_controlhdr)) {
                ND_PRINT("[|lane]");
                return;
@@ -118,6 +119,7 @@ lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
 u_int
 lane_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 {
+       ndo->ndo_protocol = "lane_if";
        lane_print(ndo, p, h->len, h->caplen);
 
        return (sizeof(struct lecdatahdr_8023));