lwIP
2.0.2
Lightweight IP stack
|
#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"
Macros | |
#define | SLIP_MAX_SIZE 1500 |
#define | SLIP_SIO_SPEED(sio_fd) 0 |
Functions | |
err_t | slipif_init (struct netif *netif) |
void | slipif_poll (struct netif *netif) |
SLIP Interface
#define SLIP_MAX_SIZE 1500 |
Maximum packet size that is received by this netif
#define SLIP_SIO_SPEED | ( | sio_fd | ) | 0 |
Define this to the interface speed for SNMP (sio_fd is the sio_fd_t returned by sio_open). The default value of zero means 'unknown'.
SLIP netif initialization
Call the arch specific sio_open and remember the opened device in the state field of the netif.
netif | the lwip network interface structure for this slipif |
void slipif_poll | ( | struct netif * | netif | ) |
Polls the serial device and feeds the IP layer with incoming packets.
netif | The lwip network interface structure for this slipif |