/* Map an Ethernet type to the equivalent PPP type.  */
static int ethertype_to_ppptype(int)
/* Map an Ethernet type to the equivalent PPP type.  */
static int ethertype_to_ppptype(int)
{
	switch (proto) {
	case ETHERTYPE_IP:
		proto = PPP_IP;
		break;
	case ETHERTYPE_IPV6:
		proto = PPP_IPV6;
		break;
	case ETHERTYPE_DN:
		proto = PPP_DECNET;
		break;
	case ETHERTYPE_ATALK:
		proto = PPP_APPLE;
		break;
	case ETHERTYPE_NS:
		proto = PPP_NS;
		break;
	case LLCSAP_ISONS:
		proto = PPP_OSI;
		break;
	case LLCSAP_8021D:
		proto = PPP_BRPDU;
		break;
	case LLCSAP_IPX:
		proto = PPP_IPX;
		break;
	}
	return (proto);
}