-u_int
-ipnet_if_print(const struct pcap_pkthdr *h, const u_char *p)
-{
- ipnet_print(p, h->len, h->caplen);
-
- return (sizeof(ipnet_hdr_t));
-}
-
-/*
- * Prints the packet encapsulated in an Ethernet data segment
- * (or an equivalent encapsulation), given the Ethernet type code.
- *
- * Returns non-zero if it can do so, zero if the ethertype is unknown.
- *
- * The Ethernet type code is passed through a pointer; if it was
- * ETHERTYPE_8021Q, it gets updated to be the Ethernet type of
- * the 802.1Q payload, for the benefit of lower layers that might
- * want to know what it is.
- */
-
-int
-ipnet_encap_print(u_short family, const u_char *p,
- u_int length, u_int caplen)
+void
+ipnet_if_print(netdissect_options *ndo,
+ const struct pcap_pkthdr *h, const u_char *p)