ReactOS  0.4.14-dev-1276-g8aa58c1
rosip.c File Reference
#include "lwip/sys.h"
#include "lwip/netif.h"
#include "lwip/tcpip.h"
#include "rosip.h"
#include <debug.h>
Include dependency graph for rosip.c:

Go to the source code of this file.

Typedefs

typedef struct netifPNETIF
 

Functions

void LibIPInsertPacket (void *ifarg, const void *const data, const u32_t size)
 
void LibIPInitialize (void)
 
void LibIPShutdown (void)
 

Typedef Documentation

◆ PNETIF

typedef struct netif* PNETIF

Definition at line 9 of file rosip.c.

Function Documentation

◆ LibIPInitialize()

void LibIPInitialize ( void  )

Definition at line 35 of file rosip.c.

36 {
37  /* This completes asynchronously */
39 }
smooth NULL
Definition: ftsmooth.c:416
void tcpip_init(tcpip_init_done_fn initfunc, void *arg)
Definition: tcpip.c:456

Referenced by TCPStartup().

◆ LibIPInsertPacket()

void LibIPInsertPacket ( void ifarg,
const void *const  data,
const u32_t  size 
)

Definition at line 12 of file rosip.c.

15 {
16  struct pbuf *p;
17 
18  ASSERT(ifarg);
19  ASSERT(data);
20  ASSERT(size > 0);
21 
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 }
struct netif * PNETIF
Definition: rosip.c:9
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
Definition: pbuf.c:207
Definition: pbuf.h:58
Definition: pbuf.h:54
GLsizeiptr size
Definition: glext.h:5919
Definition: pbuf.h:79
Definition: netif.h:136
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by TCPReceive().

◆ LibIPShutdown()

void LibIPShutdown ( void  )

Definition at line 42 of file rosip.c.

43 {
44  /* This is synchronous */
45  sys_shutdown();
46 }
void sys_shutdown(void)
Definition: sys_arch.c:337

Referenced by TCPShutdown().