#include "lwip/opt.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
Go to the source code of this file.
|
#define | NETBUF_FLAG_DESTADDR 0x01 |
|
#define | NETBUF_FLAG_CHKSUM 0x02 |
|
#define | netbuf_copy_partial(buf, dataptr, len, offset) pbuf_copy_partial((buf)->p, (dataptr), (len), (offset)) |
|
#define | netbuf_copy(buf, dataptr, len) netbuf_copy_partial(buf, dataptr, len, 0) |
|
#define | netbuf_take(buf, dataptr, len) pbuf_take((buf)->p, dataptr, len) |
|
#define | netbuf_len(buf) ((buf)->p->tot_len) |
|
#define | netbuf_fromaddr(buf) (&((buf)->addr)) |
|
#define | netbuf_set_fromaddr(buf, fromaddr) ip_addr_set((&(buf)->addr), fromaddr) |
|
#define | netbuf_fromport(buf) ((buf)->port) |
|
#define netbuf_copy_partial |
( |
|
buf, |
|
|
|
dataptr, |
|
|
|
len, |
|
|
|
offset |
|
) |
| pbuf_copy_partial((buf)->p, (dataptr), (len), (offset)) |
#define NETBUF_FLAG_CHKSUM 0x02 |
This netbuf includes a checksum
Definition at line 46 of file netbuf.h.
#define NETBUF_FLAG_DESTADDR 0x01 |
This netbuf has dest-addr/port set
Definition at line 44 of file netbuf.h.
#define netbuf_fromaddr |
( |
|
buf) | |
(&((buf)->addr)) |
#define netbuf_fromport |
( |
|
buf) | |
((buf)->port) |
#define netbuf_len |
( |
|
buf) | |
((buf)->p->tot_len) |
#define netbuf_set_fromaddr |
( |
|
buf, |
|
|
|
fromaddr |
|
) |
| ip_addr_set((&(buf)->addr), fromaddr) |
#define netbuf_take |
( |
|
buf, |
|
|
|
dataptr, |
|
|
|
len |
|
) |
| pbuf_take((buf)->p, dataptr, len) |
void netbuf_chain |
( |
struct netbuf * |
head, |
|
|
struct netbuf * |
tail |
|
) |
| |
void netbuf_delete |
( |
struct netbuf * |
buf) | |
|
void netbuf_first |
( |
struct netbuf * |
buf) | |
|
void netbuf_free |
( |
struct netbuf * |
buf) | |
|
struct netbuf* netbuf_new |
( |
void |
) | |
|