/[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.17 by likewise, Sun Jul 17 15:13:34 2005 UTC revision 1.18 by christiaans, Fri Nov 25 12:03:39 2005 UTC
# Line 60  err_t Line 60  err_t
60  slipif_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)  slipif_output(struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr)
61  {  {
62    struct pbuf *q;    struct pbuf *q;
63    int i;    u16_t i;
64    u8_t c;    u8_t c;
65    
66    /* Send pbuf out on the serial I/O device. */    /* Send pbuf out on the serial I/O device. */
# Line 100  slipif_input(struct netif *netif) Line 100  slipif_input(struct netif *netif)
100  {  {
101    u8_t c;    u8_t c;
102    struct pbuf *p, *q;    struct pbuf *p, *q;
103    int recved;    u16_t recved;
104    int i;    u16_t i;
105    
106    q = p = NULL;    q = p = NULL;
107    recved = i = 0;    recved = i = 0;
# Line 170  slipif_input(struct netif *netif) Line 170  slipif_input(struct netif *netif)
170  }  }
171    
172  /**  /**
173   * The SLIP input thread   * The SLIP input thread.
174   *   *
175   * Feed the IP layer with incoming packets   * Feed the IP layer with incoming packets
176   */   */
# Line 196  err_t Line 196  err_t
196  slipif_init(struct netif *netif)  slipif_init(struct netif *netif)
197  {  {
198    
199    LWIP_DEBUGF(SLIP_DEBUG, ("slipif_init: netif->num=%x\n", (int)netif->num));    LWIP_DEBUGF(SLIP_DEBUG, ("slipif_init: netif->num=%"U16_F"\n", (u16_t)netif->num));
200    
201    netif->name[0] = 's';    netif->name[0] = 's';
202    netif->name[1] = 'l';    netif->name[1] = 'l';

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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