| /lib/liblwip/src/core/ipv6/ |
| D | inet6.c | 85 struct pbuf *q; in inet_chksum_pseudo() local 90 for(q = p; q != NULL; q = q->next) { in inet_chksum_pseudo() 91 acc += chksum(q->payload, q->len); in inet_chksum_pseudo() 95 if (q->len % 2 != 0) { in inet_chksum_pseudo() 143 struct pbuf *q; in inet_chksum_pbuf() local 148 for(q = p; q != NULL; q = q->next) { in inet_chksum_pbuf() 149 acc += chksum(q->payload, q->len); in inet_chksum_pbuf() 153 if (q->len % 2 != 0) { in inet_chksum_pbuf()
|
| D | icmp6.c | 108 struct pbuf *q; in icmp_dest_unreach() local 113 q = pbuf_alloc(PBUF_IP, 8 + IP_HLEN + 8, PBUF_RAM); in icmp_dest_unreach() 115 if (q == NULL) { in icmp_dest_unreach() 121 (q->len >= (8 + IP_HLEN + 8))); in icmp_dest_unreach() 125 idur = q->payload; in icmp_dest_unreach() 129 SMEMCPY((u8_t *)q->payload + 8, p->payload, IP_HLEN + 8); in icmp_dest_unreach() 133 idur->chksum = inet_chksum(idur, q->len); in icmp_dest_unreach() 136 ip_output(q, NULL, in icmp_dest_unreach() 138 pbuf_free(q); in icmp_dest_unreach() 144 struct pbuf *q; in icmp_time_exceeded() local [all …]
|
| /lib/liblwip/src/core/ipv4/ |
| D | inet_chksum.c | 278 struct pbuf *q; in inet_chksum_pseudo() local 284 for(q = p; q != NULL; q = q->next) { in inet_chksum_pseudo() 286 (void *)q, (void *)q->next)); in inet_chksum_pseudo() 287 acc += LWIP_CHKSUM(q->payload, q->len); in inet_chksum_pseudo() 292 if (q->len % 2 != 0) { in inet_chksum_pseudo() 338 struct pbuf *q; in inet_chksum_pseudo_partial() local 345 for(q = p; (q != NULL) && (chksum_len > 0); q = q->next) { in inet_chksum_pseudo_partial() 347 (void *)q, (void *)q->next)); in inet_chksum_pseudo_partial() 348 chklen = q->len; in inet_chksum_pseudo_partial() 352 acc += LWIP_CHKSUM(q->payload, chklen); in inet_chksum_pseudo_partial() [all …]
|
| D | icmp.c | 293 struct pbuf *q; in icmp_send_response() local 300 q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE, in icmp_send_response() 302 if (q == NULL) { in icmp_send_response() 307 (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); in icmp_send_response() 316 icmphdr = (struct icmp_echo_hdr *)q->payload; in icmp_send_response() 323 SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, in icmp_send_response() 328 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response() 335 ip_output(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP); in icmp_send_response() 336 pbuf_free(q); in icmp_send_response()
|
| D | ip_frag.c | 334 struct pbuf *q; in ip_reass_chain_frag_into_datagram_and_validate() local 356 for (q = ipr->p; q != NULL;) { in ip_reass_chain_frag_into_datagram_and_validate() 357 iprh_tmp = (struct ip_reass_helper*)q->payload; in ip_reass_chain_frag_into_datagram_and_validate() 360 iprh->next_pbuf = q; in ip_reass_chain_frag_into_datagram_and_validate() 393 q = iprh_tmp->next_pbuf; in ip_reass_chain_frag_into_datagram_and_validate() 398 if (q == NULL) { in ip_reass_chain_frag_into_datagram_and_validate() 431 q = iprh->next_pbuf; in ip_reass_chain_frag_into_datagram_and_validate() 432 while (q != NULL) { in ip_reass_chain_frag_into_datagram_and_validate() 433 iprh = (struct ip_reass_helper*)q->payload; in ip_reass_chain_frag_into_datagram_and_validate() 439 q = iprh->next_pbuf; in ip_reass_chain_frag_into_datagram_and_validate()
|
| /lib/liblwip/src/core/ |
| D | pbuf.c | 209 struct pbuf *p, *q, *r; in pbuf_alloc() local 272 q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc() 273 if (q == NULL) { in pbuf_alloc() 280 q->type = type; in pbuf_alloc() 281 q->flags = 0; in pbuf_alloc() 282 q->next = NULL; in pbuf_alloc() 284 r->next = q; in pbuf_alloc() 287 q->tot_len = (u16_t)rem_len; in pbuf_alloc() 289 q->len = LWIP_MIN((u16_t)rem_len, PBUF_POOL_BUFSIZE_ALIGNED); in pbuf_alloc() 290 q->payload = (void *)((u8_t *)q + SIZEOF_STRUCT_PBUF); in pbuf_alloc() [all …]
|
| D | raw.c | 208 struct pbuf *q; /* q will be sent down the stack */ in raw_sendto() local 215 q = pbuf_alloc(PBUF_IP, 0, PBUF_RAM); in raw_sendto() 217 if (q == NULL) { in raw_sendto() 223 pbuf_chain(q, p); in raw_sendto() 226 …LWIP_DEBUGF(RAW_DEBUG, ("raw_sendto: added header pbuf %p before given pbuf %p\n", (void *)q, (voi… in raw_sendto() 229 q = p; in raw_sendto() 230 if(pbuf_header(q, -IP_HLEN)) { in raw_sendto() 240 if (q != p) { in raw_sendto() 241 pbuf_free(q); in raw_sendto() 251 if (q != p) { in raw_sendto() [all …]
|
| D | udp.c | 375 struct pbuf *q; local 381 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); 382 if (q != NULL) { 383 err_t err = pbuf_copy(q, p); 386 pbuf_header(q, -(s16_t)((IPH_HL(iphdr) * 4) + UDP_HLEN)); 387 mpcb->recv(mpcb->recv_arg, mpcb, q, ip_current_src_addr(), src); 566 struct pbuf *q; /* q will be sent down the stack */ local 590 q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM); 592 if (q == NULL) { 598 pbuf_chain(q, p); [all …]
|
| D | dhcp.c | 1344 struct pbuf *q; in dhcp_parse_reply() local 1367 q = p; in dhcp_parse_reply() 1368 while((q != NULL) && (options_idx >= q->len)) { in dhcp_parse_reply() 1369 options_idx -= q->len; in dhcp_parse_reply() 1370 options_idx_max -= q->len; in dhcp_parse_reply() 1371 q = q->next; in dhcp_parse_reply() 1373 if (q == NULL) { in dhcp_parse_reply() 1378 options = (u8_t*)q->payload; in dhcp_parse_reply() 1380 while((q != NULL) && (options[offset] != DHCP_OPTION_END) && (offset < offset_max)) { in dhcp_parse_reply() 1387 if (offset + 1 < q->len) { in dhcp_parse_reply() [all …]
|
| /lib/liblwip/src/netif/ |
| D | slipif.c | 96 struct pbuf *p, *q; member 118 struct pbuf *q; in slipif_output() local 135 for (q = p; q != NULL; q = q->next) { in slipif_output() 136 for (i = 0; i < q->len; i++) { in slipif_output() 137 c = ((u8_t *)q->payload)[i]; in slipif_output() 187 pbuf_realloc(priv->q, priv->recved); in slipif_rxbyte() 192 t = priv->q; in slipif_rxbyte() 193 priv->p = priv->q = NULL; in slipif_rxbyte() 231 if (priv->q != NULL) { in slipif_rxbyte() 233 pbuf_cat(priv->q, priv->p); in slipif_rxbyte() [all …]
|
| D | ethernetif.c | 126 struct pbuf *q; 134 for(q = p; q != NULL; q = q->next) { 138 send data from(q->payload, q->len); 164 struct pbuf *p, *q; 186 for(q = p; q != NULL; q = q->next) { 195 read data into(q->payload, q->len);
|
| D | etharp.c | 108 struct etharp_q_entry *q; member 111 struct pbuf *q; 155 free_etharp_q(struct etharp_q_entry *q) in free_etharp_q() argument 158 LWIP_ASSERT("q != NULL", q != NULL); in free_etharp_q() 159 LWIP_ASSERT("q->p != NULL", q->p != NULL); in free_etharp_q() 160 while (q) { in free_etharp_q() 161 r = q; in free_etharp_q() 162 q = q->next; in free_etharp_q() 171 #define free_etharp_q(q) pbuf_free(q) argument 182 if (arp_table[i].q != NULL) { in etharp_free_entry() [all …]
|
| /lib/liblwip/src/arch/ |
| D | etherif.c | 137 struct pbuf *q; in low_level_output() local 145 for(q = p; q != NULL; q = q->next) { in low_level_output() 150 memcpy(bufptr, q->payload, q->len); in low_level_output() 151 bufptr += q->len; in low_level_output() 188 struct pbuf *p, *q; in low_level_input() local 226 for(q = p; q != NULL; q = q->next) { in low_level_input() 231 memcpy(q->payload, bufptr, q->len); in low_level_input() 232 bufptr += q->len; in low_level_input()
|
| /lib/liblwip/test/unit/tcp/ |
| D | tcp_helper.c | 45 struct pbuf *p, *q; in tcp_create_segment_wnd() local 59 for(q = p; q != NULL; q = q->next) { in tcp_create_segment_wnd() 60 memset(q->payload, 0, q->len); in tcp_create_segment_wnd() 178 struct pbuf* q; in test_tcp_counters_check_rxdata() local 186 for(q = p; q != NULL; q = q->next) { in test_tcp_counters_check_rxdata() 187 char *data = q->payload; in test_tcp_counters_check_rxdata() 188 for(i = 0; i < q->len; i++) { in test_tcp_counters_check_rxdata()
|
| /lib/liblwip/src/netif/ppp/ |
| D | vj.c | 596 struct pbuf *np, *q; in vj_uncompress_tcp() local 612 for(q = np; q != NULL; q = q->next) { in vj_uncompress_tcp() 613 MEMCPY(q->payload, bufptr, q->len); in vj_uncompress_tcp() 614 bufptr += q->len; in vj_uncompress_tcp()
|
| D | ppp.c | 1569 struct pbuf *q, *b; in pppSingleBuf() local 1576 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in pppSingleBuf() 1577 if(!q) { in pppSingleBuf() 1583 for(b = p, pl = q->payload; b != NULL; b = b->next) { in pppSingleBuf() 1590 return q; in pppSingleBuf()
|
| /lib/liblwip/src/include/netif/ |
| D | etharp.h | 185 err_t etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr); 186 err_t etharp_query(struct netif *netif, ip_addr_t *ipaddr, struct pbuf *q);
|
| /lib/liblwip/src/api/ |
| D | api_msg.c | 81 struct pbuf *q; in recv_raw() local 97 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); in recv_raw() 98 if(q != NULL) { in recv_raw() 99 if (pbuf_copy(q, p) != ERR_OK) { in recv_raw() 100 pbuf_free(q); in recv_raw() 101 q = NULL; in recv_raw() 105 if (q != NULL) { in recv_raw() 109 pbuf_free(q); in recv_raw() 113 buf->p = q; in recv_raw() 114 buf->ptr = q; in recv_raw() [all …]
|
| D | tcpip.c | 482 struct pbuf *q = (struct pbuf *)p; in pbuf_free_int() local 483 pbuf_free(q); in pbuf_free_int()
|
| /lib/liblwip/ |
| D | CHANGELOG | 971 * opt.h, etharp.h/.c: task #9033: Support IEEE 802.1q tagged frame (VLAN),
|