File nut/net/ethdemux.c


Included Files


Typedef ETH_PROTOCOLS

typedef struct _ETH_PROTOCOLS ETH_PROTOCOLS
See: Type struct _ETH_PROTOCOLS

Type struct _ETH_PROTOCOLS

struct _ETH_PROTOCOLS
struct _ETH_PROTOCOLS  
   {  
      ETH_PROTOCOLS* ethp_next;  
      uint16_t ethp_type;  
      uint16_t ethp_mask;  
      int (*ethp_input)(NUTDEVICE*,NETBUF*);  
   }  

Local Variables

eth_prot
static ETH_PROTOCOLS* eth_prot
Used in: NutEtherDemux()  
  NutRegisterEthHandler()  

Global Function NutRegisterEthHandler()

int NutRegisterEthHandler ( uint16_t type, uint16_t mask, int (*hdlr)(NUTDEVICE*,NETBUF*) )
Prototyped in: nut/include/net/ether.h
Calls: calloc()
References Functions: NutEtherDemux() nut/net/ethdemux.c
References Variables: eth_prot nut/net/ethdemux.c

Local Function NutEtherDemux()

static int NutEtherDemux ( NUTDEVICE* dev, NETBUF* nb )
Calls: __byte_swap2() nut/boot/appload/utils.c
Used in: NutRegisterEthHandler() nut/net/ethdemux.c
References Variables: eth_prot nut/net/ethdemux.c