Functions | |
err_t | slipif_output (struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr) |
err_t | slipif_init (struct netif *netif) |
err_t slipif_init | ( | struct netif * | netif | ) |
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 |
err_t slipif_output | ( | struct netif * | netif, | |
struct pbuf * | p, | |||
struct ip_addr * | ipaddr | |||
) |
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 chaing packet to send | |
ipaddr | the ip address to send the packet to (not used for slipif) |