X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/0d35fd46a18909afce7dd9cf8041165d769e97d4..cda9bf8c5f842fc7110fbbf2234bcc898f78c0bd:/print-ipfc.c diff --git a/print-ipfc.c b/print-ipfc.c index 358bf0ba..7add1b7b 100644 --- a/print-ipfc.c +++ b/print-ipfc.c @@ -34,7 +34,6 @@ #include "netdissect.h" #include "addrtoname.h" -static const char tstr[] = " [|ipfc]"; struct ipfc_header { nd_byte ipfc_dhost[2+MAC_ADDR_LEN]; @@ -95,6 +94,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; /* @@ -129,7 +129,7 @@ ipfc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) } return (IPFC_HDRLEN + llc_hdrlen); trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return caplen; } @@ -142,5 +142,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)); }