/* Returns non-zero if it can do so, zero if the system code is unknown.  */
static int arcnet_encap_print(netdissect_options *, u_char arctype, const u_char *p, u_int length, u_int caplen)
/* Returns non-zero if it can do so, zero if the system code is unknown.  */
static int arcnet_encap_print(netdissect_options *, u_char arctype, const u_char *p, u_int length, u_int caplen)
{
	switch (arctype) {
	case ARCTYPE_IP_OLD:
	case ARCTYPE_IP:
	        ip_print(ndo, p, length);
		return (1);
	case ARCTYPE_INET6:
		ip6_print(ndo, p, length);
		return (1);
	case ARCTYPE_ARP_OLD:
	case ARCTYPE_ARP:
	case ARCTYPE_REVARP:
		arp_print(ndo, p, length, caplen);
		return (1);
	case ARCTYPE_ATALK:
		if (ndo->ndo_vflag)
			ND_PRINT((ndo, "et1 "));
		atalk_print(ndo, p, length);
		return (1);
	case ARCTYPE_IPX:
		ipx_print(ndo, p, length);
		return (1);
	default:
		return (0);
	}
}