#include "lwip/netif.h"
Include dependency graph for slipif.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
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. Definition at line 197 of file slipif.c. References DEBUGF, ERR_IF, ERR_OK, netif::mtu, netif::name, netif::num, netif::output, sio_open(), SLIP_DEBUG, slipif_loop(), slipif_output(), SLIPIF_THREAD_PRIO, netif::state, and sys_thread_new().
00198 { 00199 00200 DEBUGF(SLIP_DEBUG, ("slipif_init: netif->num=%x\n", (int)netif->num)); 00201 00202 netif->name[0] = 's'; 00203 netif->name[1] = 'l'; 00204 netif->output = slipif_output; 00205 netif->mtu = 1500; 00206 00207 netif->state = sio_open(netif->num); 00208 if (!netif->state) 00209 return ERR_IF; 00210 00211 sys_thread_new(slipif_loop, netif, SLIPIF_THREAD_PRIO); 00212 return ERR_OK; 00213 } |
Here is the call graph for this function: