Nut/OS  4.10.3
API Reference
netbuf.h File Reference

Network buffer definitions. More...

#include <sys/types.h>
#include <stdint.h>
Include dependency graph for netbuf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _NBDATA
 Data part of a network buffer structure. More...
struct  _NETBUF
 Network buffer structure. More...

Defines

#define NBAF_REFCNT   0x07
 Reference count mask.
#define NBAF_UNICAST   0x08
 Unicast address.
#define NBAF_DATALINK   0x10
 Datalink buffer allocated flag.
#define NBAF_NETWORK   0x20
 Network buffer allocated flag.
#define NBAF_TRANSPORT   0x40
 Transport buffer allocated flag.
#define NBAF_APPLICATION   0x80
 Application buffer allocated flag.
#define NBAF_ALL   0xf0
 Masks allocated buffer flags flag.

Typedefs

typedef struct _NETBUF NETBUF
 Network buffer type.
typedef struct _NBDATA NBDATA
 Network buffer data type.

Functions

NETBUFNutNetBufAlloc (NETBUF *nb, uint8_t type, int size)
 Allocate or re-allocate a network buffer part.
NETBUFNutNetBufClone (NETBUF *nb)
 Create a copy of an existing network buffer structure.
NETBUFNutNetBufClonePart (NETBUF *nb, uint8_t types)
 Create a referencing copy of an existing network buffer structure.
void NutNetBufFree (NETBUF *nb)
 Release a network buffer structure.
int NutNetBufCollect (NETBUF *nbq, int total)
 Collect linked list of network buffers.

Detailed Description

Network buffer definitions.

Definition in file netbuf.h.