mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-13 06:37:25 +00:00
Patch #928 from Marc
This commit is contained in:
parent
2c2fec1b0e
commit
b6b905412e
@ -33,7 +33,10 @@
|
|||||||
#include "lwip/mem.h"
|
#include "lwip/mem.h"
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
#include "netif/loopif.h"
|
#include "netif/loopif.h"
|
||||||
|
|
||||||
|
#if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP)
|
||||||
#include "netif/tcpdump.h"
|
#include "netif/tcpdump.h"
|
||||||
|
#endif /* LWIP_DEBUG && LWIP_TCPDUMP */
|
||||||
|
|
||||||
#include "lwip/tcp.h"
|
#include "lwip/tcp.h"
|
||||||
#include "lwip/ip.h"
|
#include "lwip/ip.h"
|
||||||
@ -46,9 +49,9 @@ loopif_output(struct netif *netif, struct pbuf *p,
|
|||||||
struct pbuf *q, *r;
|
struct pbuf *q, *r;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
#ifdef LWIP_DEBUG
|
#if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP)
|
||||||
tcpdump(p);
|
tcpdump(p);
|
||||||
#endif /* LWIP_DEBUG */
|
#endif /* LWIP_DEBUG && LWIP_TCPDUMP */
|
||||||
|
|
||||||
r = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM);
|
r = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM);
|
||||||
if(r != NULL) {
|
if(r != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user