/[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.3 by jani, Thu Nov 14 08:03:25 2002 UTC revision 1.4 by jani, Tue Dec 17 09:39:10 2002 UTC
# Line 50  Line 50 
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   *   *
# Line 138  slipif_input( struct netif * netif ) Line 143  slipif_input( struct netif * netif )
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) {
# Line 201  slipif_init(struct netif *netif) Line 206  slipif_init(struct netif *netif)
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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