50 |
|
|
51 |
#define MAX_SIZE 1500 |
#define MAX_SIZE 1500 |
52 |
|
|
53 |
|
/* Low level serial functions */ |
54 |
|
extern void sio_send(u8_t, void*); |
55 |
|
extern u8_t sio_recv(void *); |
56 |
|
extern void * sio_open(u8_t); |
57 |
|
|
58 |
/** |
/** |
59 |
* Send a pbuf doing the necessary SLIP encapsulation |
* Send a pbuf doing the necessary SLIP encapsulation |
60 |
* |
* |
143 |
default: |
default: |
144 |
if(p == NULL) { |
if(p == NULL) { |
145 |
DEBUGF(SLIP_DEBUG, ("slipif_input: alloc\n")); |
DEBUGF(SLIP_DEBUG, ("slipif_input: alloc\n")); |
146 |
p = pbuf_alloc(PBUF_LINK, 128, PBUF_POOL); |
p = pbuf_alloc(PBUF_LINK, PBUF_POOL_BUFSIZE, PBUF_POOL); |
147 |
|
|
148 |
#ifdef LINK_STATS |
#ifdef LINK_STATS |
149 |
if(p == NULL) { |
if(p == NULL) { |
206 |
netif->name[0] = 's'; |
netif->name[0] = 's'; |
207 |
netif->name[1] = 'l'; |
netif->name[1] = 'l'; |
208 |
netif->output = slipif_output; |
netif->output = slipif_output; |
209 |
|
netif->mtu = 1500; |
210 |
|
|
211 |
netif->state = sio_open(netif->num); |
netif->state = sio_open(netif->num); |
212 |
|
|