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. */ |
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; |
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 |
*/ |
*/ |
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'; |