Symbols
loading...
Files
loading...

pbuf::payload field

pointer to the actual data in the buffer

Syntax

void *payload;

Examples

pbuf::payload is referenced by 35 libraries and example projects.

References

LocationReferrerText
pbuf.h:191
void *payload;
dhcp.c:385dhcp_select()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:833dhcp_inform()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:948dhcp_decline()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:997dhcp_discover()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:1166dhcp_renew()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:1221dhcp_rebind()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:1275dhcp_reboot()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:1354dhcp_release_and_stop()
struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload;
dhcp.c:1530dhcp_parse_reply()
msg_in = (struct dhcp_msg *)p->payload;
dhcp.c:1554dhcp_parse_reply()
options = (u8_t *)q->payload;
dhcp.c:1570dhcp_parse_reply()
len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0);
dhcp.c:1694dhcp_parse_reply()
options = (u8_t *)q->payload;
dhcp.c:1758dhcp_recv()
struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload;
dhcp.c:1819dhcp_recv()
msg_in = (struct dhcp_msg *)p->payload;
dhcp.c:1923dhcp_create_msg()
msg_out = (struct dhcp_msg *)p_out->payload;
etharp.c:652etharp_input()
hdr = (struct etharp_hdr *)p->payload;
etharp.c:1125etharp_raw()
hdr = (struct etharp_hdr *)p->payload;
ethernet.c:104ethernet_input()
ethhdr = (struct eth_hdr *)p->payload;
ethernet.c:301ethernet_output()
ethhdr = (struct eth_hdr *)p->payload;
httpd.c:2001http_parse_request()
data = (char *)p->payload;
icmp.c:105icmp_input()
type = *((u8_t *)p->payload);
icmp.c:179icmp_input()
MEMCPY(r->payload, iphdr_in, hlen);
icmp.c:207icmp_input()
iecho = (struct icmp_echo_hdr *)p->payload;
icmp.c:212icmp_input()
struct ip_hdr *iphdr = (struct ip_hdr *)p->payload;
icmp.c:363icmp_send_response()
iphdr = (struct ip_hdr *)p->payload;
icmp.c:370icmp_send_response()
icmphdr = (struct icmp_echo_hdr *)q->payload;
icmp.c:377icmp_send_response()
SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload,
inet_chksum.c:269inet_cksum_pseudo_base()
acc += LWIP_CHKSUM(q->payload, q->len);
inet_chksum.c:414inet_cksum_pseudo_partial_base()
acc += LWIP_CHKSUM(q->payload, chklen);
inet_chksum.c:576inet_chksum_pbuf()
acc += LWIP_CHKSUM(q->payload, q->len);
ip4.c:445ip4_input()
iphdr = (struct ip_hdr *)p->payload;
ip4.c:647ip4_input()
iphdr = (const struct ip_hdr *)p->payload;
ip4.c:903ip4_output_if_src()
iphdr = (struct ip_hdr *)p->payload;
ip4.c:973ip4_output_if_src()
iphdr = (struct ip_hdr *)p->payload;
ip4_frag.c:178ip_reass_free_complete_datagram()
iprh = (struct ip_reass_helper *)ipr->p->payload;
ip4_frag.c:185ip_reass_free_complete_datagram()
SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
ip4_frag.c:199ip_reass_free_complete_datagram()
iprh = (struct ip_reass_helper *)p->payload;
ip4_frag.c:354ip_reass_chain_frag_into_datagram_and_validate()
fraghdr = (struct ip_hdr *)new_p->payload;
ip4_frag.c:369ip_reass_chain_frag_into_datagram_and_validate()
iprh = (struct ip_reass_helper *)new_p->payload;
ip4_frag.c:381ip_reass_chain_frag_into_datagram_and_validate()
iprh_tmp = (struct ip_reass_helper *)q->payload;
ip4_frag.c:461ip_reass_chain_frag_into_datagram_and_validate()
if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) {
ip4_frag.c:468ip_reass_chain_frag_into_datagram_and_validate()
iprh = (struct ip_reass_helper *)q->payload;
ip4_frag.c:481ip_reass_chain_frag_into_datagram_and_validate()
((struct ip_reass_helper *)ipr->p->payload) != iprh);
ip4_frag.c:517ip4_reass()
fraghdr = (struct ip_hdr *)p->payload;
ip4_frag.c:624ip4_reass()
r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf;
ip4_frag.c:627ip4_reass()
fraghdr = (struct ip_hdr *)(ipr->p->payload);
ip4_frag.c:643ip4_reass()
iprh = (struct ip_reass_helper *)r->payload;
ip4_frag.c:758ip4_frag()
original_iphdr = (struct ip_hdr *)p->payload;
ip4_frag.c:806ip4_frag()
SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN);
ip4_frag.c:807ip4_frag()
iphdr = (struct ip_hdr *)rambuf->payload;
ip4_frag.c:828ip4_frag()
(u8_t *)p->payload + poff, newpbuflen);
netbuf.c:117netbuf_alloc()
return buf->p->payload;
netbuf.c:205netbuf_data()
*dataptr = buf->ptr->payload;
pbuf.c:182pbuf_init_alloced_pbuf()
p->payload = payload;
pbuf.c:257pbuf_alloc()
((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0);
pbuf.c:291pbuf_alloc()
((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0);
pbuf.c:444pbuf_realloc()
q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len));
pbuf.c:498pbuf_add_header_impl()
payload = (u8_t *)p->payload - header_size_increment;
pbuf.c:511pbuf_add_header_impl()
payload = (u8_t *)p->payload - header_size_increment;
pbuf.c:522pbuf_add_header_impl()
p->payload = payload;
pbuf.c:600pbuf_remove_header()
payload = p->payload;
pbuf.c:604pbuf_remove_header()
p->payload = (u8_t *)p->payload + header_size_decrement;
pbuf.c:982pbuf_copy()
MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len);
pbuf.c:1049pbuf_copy_partial()
MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
pbuf.c:1087pbuf_get_contiguous()
return (u8_t *)q->payload + out_offset;
pbuf.c:1220pbuf_take()
MEMCPY(p->payload, &((const char *)dataptr)[copied_total], buf_copy_len);
pbuf.c:1253pbuf_take_at()
MEMCPY(((u8_t *)q->payload) + target_offset, dataptr, first_copy_len);
pbuf.c:1396pbuf_try_get_at()
return ((u8_t *)q->payload)[q_idx];
pbuf.c:1418pbuf_put_at()
((u8_t *)q->payload)[q_idx] = data;
sockets.c:1531lwip_sendmsg()
p->payload = msg->msg_iov[i].iov_base;
tcp_in.c:138tcp_input()
tcphdr = (struct tcp_hdr *)p->payload;
tcp_in.c:216tcp_input()
tcphdr_opt2 = (u8_t *)p->next->payload;
tcp_out.c:196tcp_create_segment()
seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
tcp_out.c:549tcp_write()
TCP_DATA_COPY2(concat_p->payload, (const u8_t *)arg + pos, seglen, &concat_chksum, &concat_chksum_swapped);
tcp_out.c:560tcp_write()
(const u8_t *)p->payload + p->len == (const u8_t *)arg) {
tcp_out.c:616tcp_write()
TCP_DATA_COPY2((char *)p->payload + optlen, (const u8_t *)arg + pos, seglen, &chksum, &chksum_swapped);
tcp_out.c:717tcp_write()
TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent);
tcp_out.c:887tcp_split_unsent_seg()
if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) {
tcp_out.c:1548tcp_output_segment()
len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload);
tcp_out.c:1557tcp_output_segment()
seg->p->payload = seg->tcphdr;
tcp_out.c:1829tcp_output_alloc_header_common()
tcphdr = (struct tcp_hdr *)p->payload;
tcp_out.c:1880tcp_output_fill_options()
tcphdr = (struct tcp_hdr *)p->payload;
tcp_out.c:2162tcp_zero_window_probe()
tcphdr = (struct tcp_hdr *)p->payload;
tcp_out.c:2169tcp_zero_window_probe()
char *d = ((char *)p->payload + TCP_HLEN);
udp.c:226udp_input()
udphdr = (struct udp_hdr *)p->payload;
udp.c:784udp_sendto_if_src()
udphdr = (struct udp_hdr *)q->payload;