/[lwip]/lwip/src/netif/loopif.c
ViewVC logotype

Diff of /lwip/src/netif/loopif.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jani, Wed Dec 18 10:40:02 2002 UTC revision 1.3 by jani, Tue Jan 7 12:50:34 2003 UTC
# Line 33  Line 33 
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"
# Line 46  loopif_output(struct netif *netif, struc Line 49  loopif_output(struct netif *netif, struc
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) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26