Lines Matching refs:pbuf

247 + * Simple callback function used with tcpip_callback to free a pbuf
250 + * @param p The pbuf (chain) to be dereferenced.
255 + struct pbuf *q = p;
260 + * A simple wrapper function that allows you to free a pbuf from interrupt context.
262 + * @param p The pbuf (chain) to be dereferenced.
266 +pbuf_free_callback(struct pbuf *p)
792 + * The pbuf is simply copied and handed back to netif->input.
802 + * ERR_MEM if the pbuf used to copy the packet couldn't be allocated
805 +netif_loop_output(struct netif *netif, struct pbuf *p,
808 + struct pbuf *r;
810 + struct pbuf *last;
817 + /* Allocate a new pbuf */
824 + /* check for overflow or too many pbuf on queue */
834 + /* Copy the whole pbuf queue p into the single pbuf r */
844 + /* let last point to the last pbuf in chain r */
875 + struct pbuf *in;
883 + struct pbuf *in_end = in;
892 + LWIP_ASSERT("bogus pbuf: len != tot_len but next == NULL!", in_end->next != NULL);
895 + /* 'in_end' now points to the last pbuf from 'in' */
897 + /* this was the last pbuf in the list */
900 + /* pop the pbuf off the list */
904 + /* De-queue the pbuf from its successors on the 'loop_' list. */
938 Index: src/core/pbuf.c
940 RCS file: /sources/lwip/lwip/src/core/pbuf.c,v
944 --- src/core/pbuf.c 4 Mar 2008 16:37:46 -0000 1.127
945 +++ src/core/pbuf.c 1 Apr 2008 19:05:40 -0000 1.128
946 @@ -667,8 +667,8 @@ pbuf_dechain(struct pbuf *p)
950 - * @param p_to pbuf source of the copy
951 - * @param p_from pbuf destination of the copy
952 + * @param p_to pbuf destination of the copy
953 + * @param p_from pbuf source of the copy
955 * @return ERR_OK if pbuf was copied
1412 @@ -277,18 +287,18 @@ inet_chksum_pseudo(struct pbuf *p,
1436 @@ -297,9 +307,10 @@ inet_chksum_pseudo(struct pbuf *p,
1447 LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): pbuf chain lwip_chksum()=%"X32_F"\n", acc));
1450 @@ -340,18 +351,17 @@ inet_chksum_pseudo_partial(struct pbuf *
1473 @@ -360,9 +370,10 @@ inet_chksum_pseudo_partial(struct pbuf *
1484 LWIP_DEBUGF(INET_DEBUG, ("inet_chksum_pseudo(): pbuf chain lwip_chksum()=%"X32_F"\n", acc));
1487 @@ -380,13 +391,7 @@ inet_chksum_pseudo_partial(struct pbuf *
1502 @@ -407,17 +412,15 @@ inet_chksum_pbuf(struct pbuf *p)
1531 @@ -531,9 +531,19 @@ ip_output_if(struct pbuf *p, struct ip_a
1722 + struct pbuf *loop_first;
1723 + struct pbuf *loop_last;
1736 +err_t netif_loop_output(struct netif *netif, struct pbuf *p, struct ip_addr *dest_ip);
2116 +err_t pbuf_free_callback(struct pbuf *p);
2167 @@ -1130,7 +1130,14 @@ ethernet_input(struct pbuf *p, struct ne
2183 @@ -1165,6 +1172,8 @@ ethernet_input(struct pbuf *p, struct ne
2204 -#include "lwip/pbuf.h"
2216 - struct pbuf *first;
2217 - struct pbuf *last;
2232 - struct pbuf *in, *in_end;
2244 - LWIP_ASSERT("bogus pbuf: len != tot_len but next == NULL!", in_end->next != NULL);
2247 - /* 'in_end' now points to the last pbuf from 'in' */
2249 - /* this was the last pbuf in the list */
2252 - /* pop the pbuf off the list */
2261 - /* De-queue the pbuf from its successors on the 'priv' list. */
2278 - * The pbuf is simply copied and handed back to netif->input.
2288 - * ERR_MEM if the pbuf used to copy the packet couldn't be allocated
2291 -loopif_output(struct netif *netif, struct pbuf *p,
2297 - struct pbuf *last;
2299 - struct pbuf *r;
2304 - /* Allocate a new pbuf */
2310 - /* Copy the whole pbuf queue p into the single pbuf r */
2330 - /* let last point to the last pbuf in chain r */
2392 #include "lwip/pbuf.h"