|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "netif/slipif.h"#include "lwip/opt.h"#include "lwip/def.h"#include "lwip/pbuf.h"#include "lwip/stats.h"#include "lwip/snmp.h"#include "lwip/sys.h"#include "lwip/sio.h"
Go to the source code of this file.
Classes | |
| struct | slipif_priv |
Macros | |
| #define | SLIP_END 0xC0 /* 0300: start and end of every packet */ |
| #define | SLIP_ESC 0xDB /* 0333: escape start (one byte escaped data follows) */ |
| #define | SLIP_ESC_END 0xDC /* 0334: following escape: original byte is 0xC0 (END) */ |
| #define | SLIP_ESC_ESC 0xDD /* 0335: following escape: original byte is 0xDB (ESC) */ |
| #define | SLIP_MAX_SIZE 1500 |
| #define | SLIP_SIO_SPEED(sio_fd) 0 |
Enumerations | |
| enum | slipif_recv_state { SLIP_RECV_NORMAL , SLIP_RECV_ESCAPE } |
Functions | |
| static err_t | slipif_output (struct netif *netif, struct pbuf *p) |
| static struct pbuf * | slipif_rxbyte (struct netif *netif, u8_t c) |
| static void | slipif_rxbyte_input (struct netif *netif, u8_t c) |
| err_t | slipif_init (struct netif *netif) |
| void | slipif_poll (struct netif *netif) |
SLIP Interface
Definition in file slipif.c.
| #define SLIP_MAX_SIZE 1500 |
| #define SLIP_SIO_SPEED | ( | sio_fd | ) | 0 |
| Enumerator | |
|---|---|
| SLIP_RECV_NORMAL | |
| SLIP_RECV_ESCAPE | |
Send a pbuf doing the necessary SLIP encapsulation
Uses the serial layer's sio_send()
| netif | the lwip network interface structure for this slipif |
| p | the pbuf chain packet to send |
Definition at line 116 of file slipif.c.
Handle the incoming SLIP stream character by character
| netif | the lwip network interface structure for this slipif |
| c | received character (multiple calls to this function will return a complete packet, NULL is returned before - used for polling) |
Definition at line 207 of file slipif.c.
Referenced by slipif_rxbyte_input().
Like slipif_rxbyte, but passes completed packets to netif->input
| netif | The lwip network interface structure for this slipif |
| c | received character |
Definition at line 310 of file slipif.c.
Referenced by slipif_poll().