ReactOS 0.4.15-dev-8127-g6338913
ip.c
Go to the documentation of this file.
1#include <lwip/netif.h>
2#include <lwip/tcpip.h>
3
4typedef struct netif* PNETIF;
5
6void
7sys_shutdown(void);
8
9void
11 const void *const data,
12 const u32_t size)
13{
14 struct pbuf *p;
15
16 ASSERT(ifarg);
17 ASSERT(data);
18 ASSERT(size > 0);
19
21 if (p)
22 {
23 ASSERT(p->tot_len == p->len);
24 ASSERT(p->len == size);
25
26 RtlCopyMemory(p->payload, data, p->len);
27
28 ((PNETIF)ifarg)->input(p, (PNETIF)ifarg);
29 }
30}
31
32void
34{
35 /* This completes asynchronously */
37}
38
39void
41{
42 /* This is synchronous */
44}
#define NULL
Definition: types.h:112
unsigned long u32_t
Definition: cc.h:25
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLsizeiptr size
Definition: glext.h:5919
GLfloat GLfloat p
Definition: glext.h:8902
void LibIPInsertPacket(void *ifarg, const void *const data, const u32_t size)
Definition: ip.c:10
void LibIPShutdown(void)
Definition: ip.c:40
void sys_shutdown(void)
Definition: sys_arch.c:332
void LibIPInitialize(void)
Definition: ip.c:33
struct netif * PNETIF
Definition: ip.c:4
#define ASSERT(a)
Definition: mode.c:44
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
Definition: pbuf.c:207
@ PBUF_RAM
Definition: pbuf.h:58
@ PBUF_RAW
Definition: pbuf.h:54
Definition: netif.h:136
Definition: pbuf.h:79
void tcpip_init(tcpip_init_done_fn initfunc, void *arg)
Definition: tcpip.c:458
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263