kernels/linux-2.4.0/drivers/net/ppp_generic.c
/* Translates an ethertype into an NP index */
Translates an ethertype into an NP index
Translates an ethertype into an NP index
static inline int ethertype_to_npindex(int ethertype)
{
	switch (ethertype) {
	case ETH_P_IP:
		return NP_IP;
	case ETH_P_IPV6:
		return NP_IPV6;
	case ETH_P_IPX:
		return NP_IPX;
	case ETH_P_PPPTALK:
	case ETH_P_ATALK:
		return NP_AT;
	}
	return -1;
}
static inline int ethertype_to_npindex ( int ethertype ) { switch ( ethertype ) { case ETH_P_IP : return NP_IP ; case ETH_P_IPV6 : return NP_IPV6 ; case ETH_P_IPX : return NP_IPX ; case ETH_P_PPPTALK : case ETH_P_ATALK : return NP_AT ; } return -1 ; }
Translates an ethertype into an NP index
Translates an ethertype into an NP index