Further update to ARP queueing: Changed pbuf_copy() implementation so that it can be reused (don't allocate the target pbuf inside pbuf_copy()).

This commit is contained in:
goldsimon
2007-05-04 21:31:25 +00:00
parent be316e81a7
commit 79d9b36ece
4 changed files with 67 additions and 24 deletions

View File

@@ -34,7 +34,7 @@
#define __LWIP_PBUF_H__
#include "arch/cc.h"
#include "lwip/err.h"
#define PBUF_TRANSPORT_HLEN 20
#define PBUF_IP_HLEN 20
@@ -107,7 +107,7 @@ void pbuf_cat(struct pbuf *h, struct pbuf *t);
void pbuf_chain(struct pbuf *h, struct pbuf *t);
struct pbuf *pbuf_dechain(struct pbuf *p);
#if ARP_QUEUEING
struct pbuf *pbuf_copy(struct pbuf *f);
err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from);
#endif
#endif /* __LWIP_PBUF_H__ */