slipif.c File Reference


Functions

err_t slipif_output (struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
err_t slipif_init (struct netif *netif)

Detailed Description

SLIP Interface

Function Documentation

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.

Parameters:
netif the lwip network interface structure for this slipif
Returns:
ERR_OK if serial line could be opened, ERR_IF is serial line couldn't be opened
Note:
netif->num must contain the number of the serial port to open (0 by default)

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()

Parameters:
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)
Returns:
always returns ERR_OK since the serial layer does not provide return values


Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4