Home
last modified time | relevance | path

Searched refs:rambuf (Results 1 – 2 of 2) sorted by relevance

/third_party/lwip/src/core/ipv6/
Dip6_frag.c725 struct pbuf *rambuf; in ip6_frag() local
754 rambuf = pbuf_alloc(PBUF_IP, cop + IP6_FRAG_HLEN, PBUF_RAM); in ip6_frag()
755 if (rambuf == NULL) { in ip6_frag()
760 (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); in ip6_frag()
761 poff += pbuf_copy_partial(p, (u8_t*)rambuf->payload + IP6_FRAG_HLEN, cop, poff); in ip6_frag()
763 if (pbuf_add_header(rambuf, IP6_HLEN)) { in ip6_frag()
764 pbuf_free(rambuf); in ip6_frag()
769 SMEMCPY(rambuf->payload, original_ip6hdr, IP6_HLEN); in ip6_frag()
770 ip6hdr = (struct ip6_hdr *)rambuf->payload; in ip6_frag()
771 frag_hdr = (struct ip6_frag_hdr *)((u8_t*)rambuf->payload + IP6_HLEN); in ip6_frag()
[all …]
/third_party/lwip/src/core/ipv4/
Dip4_frag.c742 struct pbuf *rambuf; in ip4_frag() local
779 rambuf = pbuf_alloc(PBUF_IP, fragsize, PBUF_RAM); in ip4_frag()
780 if (rambuf == NULL) { in ip4_frag()
784 (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); in ip4_frag()
785 poff += pbuf_copy_partial(p, rambuf->payload, fragsize, poff); in ip4_frag()
787 if (pbuf_add_header(rambuf, IP_HLEN)) { in ip4_frag()
788 pbuf_free(rambuf); in ip4_frag()
792 SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); in ip4_frag()
793 iphdr = (struct ip_hdr *)rambuf->payload; in ip4_frag()
800 rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM); in ip4_frag()
[all …]