RetroArch
|
#include "netif/slipif.h"
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/sys.h"
#include "lwip/stats.h"
#include "lwip/sio.h"
Macros | |
#define | SLIP_END 0300 |
#define | SLIP_ESC 0333 |
#define | SLIP_ESC_END 0334 |
#define | SLIP_ESC_ESC 0335 |
#define | MAX_SIZE 1500 |
Functions | |
err_t | slipif_output (struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) |
static struct pbuf * | slipif_input (struct netif *netif) |
static void | slipif_loop (void *nf) |
err_t | slipif_init (struct netif *netif) |
#define MAX_SIZE 1500 |
#define SLIP_END 0300 |
#define SLIP_ESC 0333 |
#define SLIP_ESC_END 0334 |
#define SLIP_ESC_ESC 0335 |
SLIP netif initialization
Call the arch specific sio_open and remember the opened device in the state field of the netif.
Handle the incoming SLIP stream character by character
Poll the serial layer by calling sio_recv()
The SLIP input thread
Feed the IP layer with incoming packets
Send a pbuf doing the necessary SLIP encapsulation
Uses the serial layer's sio_send()