File nut/include/dev/netbuf.h


Included Files


Preprocessor definitions

#define _NET_NETBUF_H_

#define NBAF_REFCNT 0x07

#define NBAF_UNICAST 0x08

#define NBAF_DATALINK 0x10

#define NBAF_NETWORK 0x20

#define NBAF_TRANSPORT 0x40

#define NBAF_APPLICATION 0x80

#define NBAF_ALL 0xf0


Typedef NETBUF

typedef struct _NETBUF NETBUF
See: Type struct _NETBUF

Typedef NBDATA

typedef struct _NBDATA NBDATA
See: Type struct _NBDATA

Type struct _NBDATA

struct _NBDATA
struct _NBDATA  
   {  
      void* vp;  
      int sz;  
   }  

Type struct _NETBUF

struct _NETBUF
struct _NETBUF  
   {  
      NETBUF* nb_next;  
      uint8_t nb_flags;  
      NBDATA nb_dl;  
      NBDATA nb_nw;  
      NBDATA nb_tp;  
      NBDATA nb_ap;  
      NETBUF* nb_ref;  
   }