#include "netdissect.h"
#include "addrtoname.h"
-static const char tstr[] = " [|ipfc]";
struct ipfc_header {
nd_byte ipfc_dhost[2+MAC_ADDR_LEN];
struct lladdr_info src, dst;
int llc_hdrlen;
+ ndo->ndo_protocol = "ipfc";
if (caplen < IPFC_HDRLEN)
goto trunc;
/*
}
return (IPFC_HDRLEN + llc_hdrlen);
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return caplen;
}
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));
}