33 |
#include "lwip/mem.h" |
#include "lwip/mem.h" |
34 |
#include "lwip/opt.h" |
#include "lwip/opt.h" |
35 |
#include "netif/loopif.h" |
#include "netif/loopif.h" |
36 |
|
|
37 |
|
#if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP) |
38 |
#include "netif/tcpdump.h" |
#include "netif/tcpdump.h" |
39 |
|
#endif /* LWIP_DEBUG && LWIP_TCPDUMP */ |
40 |
|
|
41 |
#include "lwip/tcp.h" |
#include "lwip/tcp.h" |
42 |
#include "lwip/ip.h" |
#include "lwip/ip.h" |
49 |
struct pbuf *q, *r; |
struct pbuf *q, *r; |
50 |
char *ptr; |
char *ptr; |
51 |
|
|
52 |
#ifdef LWIP_DEBUG |
#if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP) |
53 |
tcpdump(p); |
tcpdump(p); |
54 |
#endif /* LWIP_DEBUG */ |
#endif /* LWIP_DEBUG && LWIP_TCPDUMP */ |
55 |
|
|
56 |
r = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); |
r = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM); |
57 |
if(r != NULL) { |
if(r != NULL) { |