-/*
- * 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)
-{
- recurse:
-
- switch (family) {
-
- case IPH_AF_INET:
- ip_print(gndo, p, length);
- return (1);
-
-#ifdef INET6
- case IPH_AF_INET6:
- ip6_print(p, length);
- return (1);
-#endif /*INET6*/
-
- default:
- return(0);
- }
-}
-
-