74#define SLIP_ESC_END 0xDC
75#define SLIP_ESC_ESC 0xDD
79#define SLIP_MAX_SIZE 1500
87#define SLIP_SIO_SPEED(sio_fd) 0
102 struct pbuf *rxpackets;
135 for (
i = 0;
i <
q->len;
i++) {
172slipif_output_v4(
struct netif *
netif,
struct pbuf *
p,
const ip4_addr_t *ipaddr)
191slipif_output_v6(
struct netif *
netif,
struct pbuf *
p,
const ip6_addr_t *ipaddr)
262 if (priv->
p ==
NULL) {
267 if (priv->
p ==
NULL) {
274 if (priv->
q !=
NULL) {
285 ((
u8_t *)priv->
p->payload)[priv->
i] =
c;
288 if (priv->
i >= priv->
p->len) {
291 if (priv->
p->next !=
NULL && priv->
p->next->len > 0) {
293 priv->
p = priv->
p->next;
321#if SLIP_USE_RX_THREAD
330slipif_loop_thread(
void *nf)
381 netif->output = slipif_output_v4;
384 netif->output_ip6 = slipif_output_v6;
403 priv->rxpackets =
NULL;
411#if SLIP_USE_RX_THREAD
460 while (priv->rxpackets !=
NULL) {
461 struct pbuf *
p = priv->rxpackets;
465 while ((
q->len !=
q->tot_len) && (
q->next !=
NULL)) {
468 priv->rxpackets =
q->next;
471 priv->rxpackets =
NULL;
497 if (priv->rxpackets !=
NULL) {
501 while (
q->next !=
NULL) {
554 for (
i = 0;
i <
len;
i++, rxdata++) {
555 slipif_rxbyte_enqueue(
netif, *rxdata);
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
#define mem_free(ptr, bsize)
#define SYS_ARCH_UNPROTECT(lev)
#define SYS_ARCH_PROTECT(lev)
#define SYS_ARCH_DECL_PROTECT(lev)
void * mem_malloc(mem_size_t size_in)
#define LWIP_DEBUGF(debug, message)
#define LWIP_ASSERT(message, assertion)
sio_fd_t sio_open(u8_t devnum)
void sio_send(u8_t c, sio_fd_t fd)
u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len)
u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len)
#define MIB2_INIT_NETIF(netif, type, speed)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define LWIP_PTR_NUMERIC_CAST(target_type, val)
#define LWIP_UNUSED_ARG(x)
#define PBUF_LINK_ENCAPSULATION_HLEN
#define PBUF_POOL_BUFSIZE
#define SLIPIF_THREAD_PRIO
#define SLIPIF_THREAD_STACKSIZE
#define SLIPIF_THREAD_NAME
void pbuf_realloc(struct pbuf *p, u16_t new_len)
void pbuf_cat(struct pbuf *h, struct pbuf *t)
struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
u8_t pbuf_free(struct pbuf *p)
err_t slipif_init(struct netif *netif)
void slipif_poll(struct netif *netif)
sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio)
#define SLIP_SIO_SPEED(sio_fd)
static void slipif_rxbyte_input(struct netif *netif, u8_t c)
static struct pbuf * slipif_rxbyte(struct netif *netif, u8_t c)
static err_t slipif_output(struct netif *netif, struct pbuf *p)
#define LINK_STATS_INC(x)