Remove unnecessary executable bits
[reactos.git] / sdk / lib / drivers / lwip / src / rosip.c
1 #include "lwip/sys.h"
2 #include "lwip/netif.h"
3 #include "lwip/tcpip.h"
4
5 #include "rosip.h"
6
7 #include <debug.h>
8
9 typedef struct netif* PNETIF;
10
11 void
12 LibIPInsertPacket(void *ifarg,
13 const void *const data,
14 const u32_t size)
15 {
16 struct pbuf *p;
17
18 ASSERT(ifarg);
19 ASSERT(data);
20 ASSERT(size > 0);
21
22 p = pbuf_alloc(PBUF_RAW, size, PBUF_RAM);
23 if (p)
24 {
25 ASSERT(p->tot_len == p->len);
26 ASSERT(p->len == size);
27
28 RtlCopyMemory(p->payload, data, p->len);
29
30 ((PNETIF)ifarg)->input(p, (PNETIF)ifarg);
31 }
32 }
33
34 void
35 LibIPInitialize(void)
36 {
37 /* This completes asynchronously */
38 tcpip_init(NULL, NULL);
39 }
40
41 void
42 LibIPShutdown(void)
43 {
44 /* This is synchronous */
45 sys_shutdown();
46 }