LwIP + 0/7 examples
CodeScope will show references to netbuf from the following samples and libraries:
Examples
STM32469I_EVAL
Applications
LwIP
STM324x9I_EVAL
Applications
LwIP
STM324xG_EVAL
Applications
LwIP
STM32F429ZI-Nucleo
Applications
LwIP
 
Symbols
loading...
Files
loading...

netbuf struct

"Network buffer" - contains data and addressing info

Syntax

struct netbuf {   struct pbuf *p, *ptr;   ip_addr_t addr;   u16_t port; #if LWIP_NETBUF_RECVINFO || LWIP_CHECKSUM_ON_COPY   u8_t flags;   u16_t toport_chksum; #if LWIP_NETBUF_RECVINFO   ip_addr_t toaddr; #endif  #endif  };

Fields

p

No summary provided. Read more...

ptr

No summary provided. Read more...

addr

No summary provided. Read more...

port

No summary provided. Read more...

Examples

netbuf is referenced by 7 libraries and example projects.

References

LocationReferrerScopeText
netbuf.h:60
struct netbuf {
sockets_priv.h:62
struct netbuf *netbuf;
api.h:334netconn_recv()::new_bufnetconn_recv()
err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf);
api.h:335netconn_recv_udp_raw_netbuf()::new_bufnetconn_recv_udp_raw_netbuf()
api.h:336netconn_recv_udp_raw_netbuf_flags()::new_bufnetconn_recv_udp_raw_netbuf_flags()
api.h:340netconn_sendto()::bufnetconn_sendto()
err_t netconn_sendto(struct netconn *conn, struct netbuf *buf,
api.h:342netconn_send()::bufnetconn_send()
err_t netconn_send(struct netconn *conn, struct netbuf *buf);
api_lib.c:658netconn_recv_data()
len = netbuf_len((struct netbuf *)buf);
api_lib.c:822netconn_recv_udp_raw_netbuf()
api_lib.c:842netconn_recv_udp_raw_netbuf_flags()
api_lib.c:860netconn_recv()
netconn_recv(struct netconn *conn, struct netbuf **new_buf)
api_lib.c:863netconn_recv()
struct netbuf *buf = NULL;
api_lib.c:879netconn_recv()
buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
api_lib.c:922netconn_sendto()
netconn_sendto(struct netconn *conn, struct netbuf *buf, const ip_addr_t *addr, u16_t port)
api_lib.c:941netconn_send()
netconn_send(struct netconn *conn, struct netbuf *buf)
api_msg.c:221recv_udp()
struct netbuf *buf;
api_msg.c:251recv_udp()
buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
api_msg.c:853netconn_drain()
netbuf_delete((struct netbuf *)mem);
api_msg.h:88api_msg::::bapi_msg::
struct netbuf *b;
memp_std.h:67
LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF")
netbuf.c:63netbuf_new()
netbuf *netbuf_new(void)
netbuf.c:65netbuf_new()
struct netbuf *buf;
netbuf.c:67netbuf_new()
buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
netbuf.c:69netbuf_new()
memset(buf, 0, sizeof(struct netbuf));
netbuf.c:81netbuf_delete()
netbuf_delete(struct netbuf *buf)
netbuf.c:102netbuf_alloc()
netbuf_alloc(struct netbuf *buf, u16_t size)
netbuf.c:127netbuf_free()
netbuf_free(struct netbuf *buf)
netbuf.c:151netbuf_ref()
netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size)
netbuf.c:176netbuf_chain()
netbuf_chain(struct netbuf *head, struct netbuf *tail)
netbuf.c:196netbuf_data()
netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len)
netbuf.c:222netbuf_next()
netbuf_next(struct netbuf *buf)
netbuf.c:244netbuf_first()
netbuf_first(struct netbuf *buf)
netbuf.h:74netbuf_new()
struct netbuf * netbuf_new (void);
netbuf.h:75netbuf_delete()::bufnetbuf_delete()
void netbuf_delete (struct netbuf *buf);
netbuf.h:76netbuf_alloc()::bufnetbuf_alloc()
void * netbuf_alloc (struct netbuf *buf, u16_t size);
netbuf.h:77netbuf_free()::bufnetbuf_free()
void netbuf_free (struct netbuf *buf);
netbuf.h:78netbuf_ref()::bufnetbuf_ref()
err_t netbuf_ref (struct netbuf *buf,
netbuf.h:80netbuf_chain()::headnetbuf_chain()
void netbuf_chain (struct netbuf *head, struct netbuf *tail);
netbuf.h:82netbuf_data()::bufnetbuf_data()
err_t netbuf_data (struct netbuf *buf,
netbuf.h:84netbuf_next()::bufnetbuf_next()
s8_t netbuf_next (struct netbuf *buf);
netbuf.h:85netbuf_first()::bufnetbuf_first()
void netbuf_first (struct netbuf *buf);
sockets.c:1090lwip_recvfrom_udp_raw()
struct netbuf *buf;
sockets.c:1470lwip_sendmsg()
struct netbuf chain_buf;
sockets.c:1480lwip_sendmsg()
memset(&chain_buf, 0, sizeof(struct netbuf));
sockets.c:1592lwip_sendto()
struct netbuf buf;
sockets_priv.h:62lwip_sock_lastdata::netbuflwip_sock_lastdata
struct netbuf *netbuf;

Type Use

Allocators of netbuf
Deletors of netbuf
lwip_sendmsg()::chain_buf
lwip_sendto()::buf
all items filtered out
netbuf
lwip_sendmsg()::chain_buf
lwip_sendto()::buf
all items filtered out