| /lib/lwip/lwip/src/include/lwip/ |
| A D | pbuf.h | 186 struct pbuf { struct 188 struct pbuf *next; argument 234 struct pbuf *next; 247 struct pbuf pbuf; member 291 struct pbuf *pbuf_free_header(struct pbuf *q, u16_t size); 295 void pbuf_cat(struct pbuf *head, struct pbuf *tail); 296 void pbuf_chain(struct pbuf *head, struct pbuf *tail); 297 struct pbuf *pbuf_dechain(struct pbuf *p); 298 err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from); 305 struct pbuf *pbuf_coalesce(struct pbuf *p, pbuf_layer layer); [all …]
|
| A D | icmp.h | 80 void icmp_input(struct pbuf *p, struct netif *inp); 81 void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); 82 void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); 88 #define icmp_port_unreach(isipv6, pbuf) ((isipv6) ? \ argument 90 icmp_dest_unreach(pbuf, ICMP_DUR_PORT)) 92 #define icmp_port_unreach(isipv6, pbuf) do{ if(!(isipv6)) { icmp_dest_unreach(pbuf, ICMP_DUR_PORT);… argument 94 #define icmp_port_unreach(isipv6, pbuf) do{ if(isipv6) { icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT);}… argument 96 #define icmp_port_unreach(isipv6, pbuf) argument 99 #define icmp_port_unreach(isipv6, pbuf) icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) argument 101 #define icmp_port_unreach(isipv6, pbuf) icmp_dest_unreach(pbuf, ICMP_DUR_PORT) argument [all …]
|
| A D | icmp6.h | 56 void icmp6_input(struct pbuf *p, struct netif *inp); 57 void icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c); 58 void icmp6_packet_too_big(struct pbuf *p, u32_t mtu); 59 void icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c); 60 void icmp6_time_exceeded_with_addrs(struct pbuf *p, enum icmp6_te_code c, 62 void icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, const void *pointer);
|
| A D | ip4.h | 71 err_t ip4_input(struct pbuf *p, struct netif *inp); 72 err_t ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 74 err_t ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 76 err_t ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 79 err_t ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 83 err_t ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 86 err_t ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 98 void ip4_debug_print(struct pbuf *p);
|
| A D | ip6.h | 62 err_t ip6_input(struct pbuf *p, struct netif *inp); 63 err_t ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 65 err_t ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 67 err_t ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 70 err_t ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 74 err_t ip6_options_add_hbh_ra(struct pbuf * p, u8_t nexth, u8_t value); 81 void ip6_debug_print(struct pbuf *p);
|
| A D | udp.h | 77 typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p, 130 err_t udp_sendto_if (struct udp_pcb *pcb, struct pbuf *p, 133 err_t udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p, 136 err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p, 138 err_t udp_send (struct udp_pcb *pcb, struct pbuf *p); 141 err_t udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p, 145 err_t udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p, 148 err_t udp_send_chksum(struct udp_pcb *pcb, struct pbuf *p, 150 err_t udp_sendto_if_src_chksum(struct udp_pcb *pcb, struct pbuf *p, 163 void udp_input (struct pbuf *p, struct netif *inp);
|
| A D | inet_chksum.h | 75 u16_t inet_chksum_pbuf(struct pbuf *p); 81 u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 83 u16_t inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, 88 u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 90 u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, 95 u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 97 u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len,
|
| A D | ip4_frag.h | 63 struct pbuf *p; 72 struct pbuf * ip4_reass(struct pbuf *p); 86 struct pbuf *original; 91 err_t ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest);
|
| A D | ip6_frag.h | 92 struct pbuf *p; 116 struct pbuf *ip6_reass(struct pbuf *p); 131 struct pbuf *original; 135 err_t ip6_frag(struct pbuf *p, struct netif *netif, const ip6_addr_t *dest);
|
| A D | etharp.h | 72 struct pbuf *p; 81 err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 82 err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q); 101 void etharp_input(struct pbuf *p, struct netif *netif);
|
| A D | tcpip.h | 66 struct pbuf; 79 err_t tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn); 80 err_t tcpip_input(struct pbuf *p, struct netif *inp); 96 err_t pbuf_free_callback(struct pbuf *p);
|
| /lib/lwip/lwip/src/core/ |
| A D | pbuf.c | 223 struct pbuf * 326 struct pbuf * 362 struct pbuf * 673 struct pbuf * 855 pbuf_cat(struct pbuf *h, struct pbuf *t) in pbuf_cat() 897 pbuf_chain(struct pbuf *h, struct pbuf *t) in pbuf_chain() 913 struct pbuf * 959 pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from) in pbuf_copy() 1144 void pbuf_split_64k(struct pbuf *p, struct pbuf **rest) in pbuf_split_64k() 1208 struct pbuf * [all …]
|
| A D | inet_chksum.c | 262 struct pbuf *q; in inet_cksum_pseudo_base() 310 inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in inet_chksum_pseudo() 343 ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in ip6_chksum_pseudo() 379 ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, in ip_chksum_pseudo() 399 inet_cksum_pseudo_partial_base(struct pbuf *p, u8_t proto, u16_t proto_len, in inet_cksum_pseudo_partial_base() 402 struct pbuf *q; in inet_cksum_pseudo_partial_base() 456 inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, in inet_chksum_pseudo_partial() 491 ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, in ip6_chksum_pseudo_partial() 526 ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, in ip_chksum_pseudo_partial() 568 inet_chksum_pbuf(struct pbuf *p) in inet_chksum_pbuf() [all …]
|
| /lib/lwip/lwip/contrib/Coverity/ |
| A D | coverity.c | 9 struct pbuf; 48 err_t ethernet_input(struct pbuf *p, struct netif *inp) in ethernet_input() 52 err_t tcpip_input(struct pbuf *p, struct netif *inp) in tcpip_input() 56 err_t ip_input(struct pbuf *p, struct netif *inp) in ip_input() 60 err_t ip4_input(struct pbuf *p, struct netif *inp) in ip4_input() 64 err_t ip6_input(struct pbuf *p, struct netif *inp) in ip6_input() 69 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len) in pbuf_take() 74 err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset) in pbuf_take_at() 79 err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from) in pbuf_copy() 83 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset) in pbuf_copy_partial() [all …]
|
| /lib/lwip/lwip/src/apps/snmp/ |
| A D | snmp_pbuf_stream.c | 47 snmp_pbuf_stream_init(struct snmp_pbuf_stream *pbuf_stream, struct pbuf *p, u16_t offset, u16_t len… in snmp_pbuf_stream_init() 51 pbuf_stream->pbuf = p; in snmp_pbuf_stream_init() 63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { in snmp_pbuf_stream_read() 86 if (pbuf_take_at(pbuf_stream->pbuf, buf, buf_len, pbuf_stream->offset) != ERR_OK) { in snmp_pbuf_stream_writebuf() 115 struct pbuf *pbuf = pbuf_skip(pbuf_stream->pbuf, pbuf_stream->offset, &target_offset); in snmp_pbuf_stream_writeto() local 117 if ((pbuf == NULL) || (pbuf->len == 0)) { in snmp_pbuf_stream_writeto() 121 chunk_len = LWIP_MIN(len, pbuf->len); in snmp_pbuf_stream_writeto() 122 …err = snmp_pbuf_stream_writebuf(target_pbuf_stream, &((u8_t *)pbuf->payload)[target_offset], chunk… in snmp_pbuf_stream_writeto()
|
| A D | snmp_msg.h | 77 void snmp_vb_enumerator_init(struct snmp_varbind_enumerator *enumerator, struct pbuf *p, u16_t offs… 130 struct pbuf *inbound_pbuf; 136 struct pbuf *outbound_pbuf; 173 void snmp_receive(void *handle, struct pbuf *p, const ip_addr_t *source_ip, u16_t port); 174 err_t snmp_sendto(void *handle, struct pbuf *p, const ip_addr_t *dst, u16_t port);
|
| /lib/lwip/lwip/src/core/ipv6/ |
| A D | icmp6.c | 66 static void icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type); 67 static void icmp6_send_response_with_addrs(struct pbuf *p, u8_t code, u32_t data, 83 icmp6_input(struct pbuf *p, struct netif *inp) in icmp6_input() 86 struct pbuf *r; in icmp6_input() 220 icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c) in icmp6_dest_unreach() 236 icmp6_packet_too_big(struct pbuf *p, u32_t mtu) in icmp6_packet_too_big() 252 icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c) in icmp6_time_exceeded() 273 icmp6_time_exceeded_with_addrs(struct pbuf *p, enum icmp6_te_code c, in icmp6_time_exceeded_with_addrs() 292 icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, const void *pointer) in icmp6_param_problem() 309 icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type) in icmp6_send_response() [all …]
|
| /lib/lwip/lwip/src/netif/ |
| A D | slipif.c | 98 struct pbuf *p, *q; 102 struct pbuf *rxpackets; 116 slipif_output(struct netif *netif, struct pbuf *p) in slipif_output() 119 struct pbuf *q; in slipif_output() 206 static struct pbuf * 210 struct pbuf *t; in slipif_rxbyte() 312 struct pbuf *p; in slipif_rxbyte_input() 461 struct pbuf *p = priv->rxpackets; in slipif_process_rxqueue() 464 struct pbuf *q = p; in slipif_process_rxqueue() 490 struct pbuf *p; in slipif_rxbyte_enqueue() [all …]
|
| /lib/lwip/lwip/test/unit/tcp/ |
| A D | tcp_helper.h | 26 struct pbuf *tx_packets; 38 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip, 41 struct pbuf* tcp_create_rx_segment(struct tcp_pcb* pcb, void* data, size_t data_len, 43 struct pbuf* tcp_create_rx_segment_wnd(struct tcp_pcb* pcb, void* data, size_t data_len, 48 err_t test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err); 52 void test_tcp_input(struct pbuf *p, struct netif *inp);
|
| A D | tcp_helper.c | 51 static struct pbuf* 56 struct pbuf *p, *q; in tcp_create_segment_wnd() 116 struct pbuf* 129 struct pbuf* 142 struct pbuf* tcp_create_rx_segment_wnd(struct tcp_pcb* pcb, void* data, size_t data_len, in tcp_create_rx_segment_wnd() 197 test_tcp_counters_check_rxdata(struct test_tcp_counters* counters, struct pbuf* p) in test_tcp_counters_check_rxdata() 199 struct pbuf* q; in test_tcp_counters_check_rxdata() 218 test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err) in test_tcp_counters_recv() 259 void test_tcp_input(struct pbuf *p, struct netif *inp) in test_tcp_input() 280 static err_t test_tcp_netif_output(struct netif *netif, struct pbuf *p, in test_tcp_netif_output() [all …]
|
| /lib/lwip/lwip/src/include/netif/ |
| A D | lowpan6.h | 68 err_t lowpan4_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 70 err_t lowpan6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); 71 err_t lowpan6_input(struct pbuf * p, struct netif *netif); 80 err_t tcpip_6lowpan_input(struct pbuf *p, struct netif *inp);
|
| /lib/lwip/lwip/test/unit/mdns/ |
| A D | test_mdns.c | 43 struct pbuf *p; in START_TEST() 62 struct pbuf *p; in START_TEST() 81 struct pbuf *p; in START_TEST() 106 struct pbuf *p; in START_TEST() 162 struct pbuf *p; in START_TEST() 187 struct pbuf *p; in START_TEST() 216 struct pbuf *p; in START_TEST() 250 struct pbuf *p; in START_TEST() 276 struct pbuf *p; in START_TEST() 298 struct pbuf *p; in START_TEST() [all …]
|
| /lib/lwip/lwip/src/apps/mdns/ |
| A D | mdns_out.c | 91 if (!outpkt->pbuf) { in mdns_add_question() 94 if (!outpkt->pbuf) { in mdns_add_question() 164 if (!reply->pbuf) { in mdns_add_answer() 167 if (!reply->pbuf) { in mdns_add_answer() 181 if (reply->write_offset + answer_len > reply->pbuf->tot_len) { in mdns_add_answer() 775 if (outpkt.pbuf) { in mdns_send_outpacket() 786 pbuf_take(outpkt.pbuf, &hdr, sizeof(hdr)); in mdns_send_outpacket() 789 pbuf_realloc(outpkt.pbuf, outpkt.write_offset); in mdns_send_outpacket() 799 if (outpkt.pbuf) { in mdns_send_outpacket() 800 pbuf_free(outpkt.pbuf); in mdns_send_outpacket() [all …]
|
| A D | mdns_domain.c | 72 const struct pbuf *p, u16_t offset, 74 static u16_t mdns_readname_loop(struct pbuf *p, u16_t offset, 122 mdns_domain_add_label_pbuf(struct mdns_domain *domain, const struct pbuf *p, u16_t offset, u8_t len) in mdns_domain_add_label_pbuf() 204 mdns_readname_loop(struct pbuf *p, u16_t offset, struct mdns_domain *domain, unsigned depth) in mdns_readname_loop() 270 mdns_readname(struct pbuf *p, u16_t offset, struct mdns_domain *domain) in mdns_readname() 536 mdns_compress_domain(struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain) in mdns_compress_domain() argument 543 if (pbuf == NULL) { in mdns_compress_domain() 546 target_end = mdns_readname(pbuf, *offset, &target); in mdns_compress_domain() 597 u16_t len = mdns_compress_domain(outpkt->pbuf, &offset, domain); in mdns_write_domain() 608 res = pbuf_take_at(outpkt->pbuf, domain->name, writelen, outpkt->write_offset); in mdns_write_domain() [all …]
|
| /lib/lwip/lwip/src/netif/ppp/ |
| A D | pppos.c | 58 static err_t pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p); 200 pppos_write(ppp_pcb *ppp, void *ctx, struct pbuf *p) in pppos_write() 204 struct pbuf *nb; in pppos_write() 254 pppos_netif_output(ppp_pcb *ppp, void *ctx, struct pbuf *pb, u16_t protocol) in pppos_netif_output() 257 struct pbuf *nb, *p; in pppos_netif_output() 427 struct pbuf *p; in pppos_input_tcpip() 444 err_t pppos_input_sys(struct pbuf *p, struct netif *inp) { in pppos_input_sys() 446 struct pbuf *n; in pppos_input_sys() 483 struct pbuf *next_pbuf; in pppos_input() 547 struct pbuf *inp; in pppos_input() [all …]
|