Home
last modified time | relevance | path

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

/lib/liblwip/src/core/
Dpbuf.c852 pbuf_copy(struct pbuf *p_to, struct pbuf *p_from) in pbuf_copy() argument
857 (void*)p_to, (void*)p_from)); in pbuf_copy()
860 LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) && in pbuf_copy()
861 (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;); in pbuf_copy()
867 if ((p_to->len - offset_to) >= (p_from->len - offset_from)) { in pbuf_copy()
872 len = p_to->len - offset_to; in pbuf_copy()
874 MEMCPY((u8_t*)p_to->payload + offset_to, (u8_t*)p_from->payload + offset_from, len); in pbuf_copy()
877 LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len); in pbuf_copy()
884 if (offset_to == p_to->len) { in pbuf_copy()
887 p_to = p_to->next; in pbuf_copy()
[all …]
/lib/liblwip/src/include/lwip/
Dpbuf.h160 err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from);