2 #include "lwip/netif.h"
3 #include "lwip/tcpip.h"
9 typedef struct netif
* PNETIF
;
12 LibIPInsertPacket(void *ifarg
,
13 const void *const data
,
22 p
= pbuf_alloc(PBUF_RAW
, size
, PBUF_RAM
);
25 ASSERT(p
->tot_len
== p
->len
);
26 ASSERT(p
->len
== size
);
28 RtlCopyMemory(p
->payload
, data
, p
->len
);
30 ((PNETIF
)ifarg
)->input(p
, (PNETIF
)ifarg
);
37 /* This completes asynchronously */
38 tcpip_init(NULL
, NULL
);
44 /* This is synchronous */