/[lwip]/lwip/src/netif/slipif.c
ViewVC logotype

Diff of /lwip/src/netif/slipif.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by jani, Wed Dec 18 12:49:02 2002 UTC revision 1.6 by jani, Thu Feb 20 11:51:54 2003 UTC
# Line 197  slipif_loop(void *nf) Line 197  slipif_loop(void *nf)
197   * Call the arch specific sio_open and remember   * Call the arch specific sio_open and remember
198   * the opened device in the state field of the netif.   * the opened device in the state field of the netif.
199   */   */
200  void  err_t
201  slipif_init(struct netif *netif)  slipif_init(struct netif *netif)
202  {  {
203                    
# Line 209  slipif_init(struct netif *netif) Line 209  slipif_init(struct netif *netif)
209    netif->mtu = 1500;        netif->mtu = 1500;    
210    
211    netif->state = sio_open(netif->num);    netif->state = sio_open(netif->num);
212      if (!netif->state)
213          return ERR_IF;
214    
215    sys_thread_new(slipif_loop, netif);    sys_thread_new(slipif_loop, netif);
216      return ERR_OK;
217  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26