File nut/net/ipdemux.c


Included Files


Typedef INET_PROTOCOLS

typedef struct _INET_PROTOCOLS INET_PROTOCOLS
See: Type struct _INET_PROTOCOLS

Type struct _INET_PROTOCOLS

struct _INET_PROTOCOLS
struct _INET_PROTOCOLS  
   {  
      INET_PROTOCOLS* inet_next;  
      uint8_t inet_prot;  
      int (*inet_input)(NUTDEVICE*,NETBUF*);  
   }  

Local Variables

in_prots
static INET_PROTOCOLS* in_prots
Used in: NutIpDemux()  
  NutRegisterIpHandler()  

Global Function NutRegisterIpHandler()

int NutRegisterIpHandler ( uint8_t prot, int (*hdlr)(NUTDEVICE*,NETBUF*) )
Prototyped in: nut/include/netinet/ip.h
Calls: calloc() nut/crt/calloc.c
References Functions: NutIpDemux() nut/net/ipdemux.c
References Variables: in_prots nut/net/ipdemux.c

Local Function NutIpDemux()

static int NutIpDemux ( NUTDEVICE* dev, NETBUF* nb )
Used in: NutRegisterIpHandler() nut/net/ipdemux.c
References Variables: in_prots nut/net/ipdemux.c