/[lwip]/lwip/src/arch/unix/netif/tapif.c
ViewVC logotype

Diff of /lwip/src/arch/unix/netif/tapif.c

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

revision 1.5 by jani, Fri Nov 22 12:53:05 2002 UTC revision 1.6 by jani, Wed Dec 18 10:36:43 2002 UTC
# Line 159  low_level_output(struct netif *netif, st Line 159  low_level_output(struct netif *netif, st
159         time. The size of the data in each pbuf is kept in the ->len         time. The size of the data in each pbuf is kept in the ->len
160         variable. */             variable. */    
161      /* send data from(q->payload, q->len); */      /* send data from(q->payload, q->len); */
162      bcopy(q->payload, bufptr, q->len);      memcpy(bufptr, q->payload, q->len);
163      bufptr += q->len;      bufptr += q->len;
164    }    }
165    
# Line 197  low_level_input(struct tapif *tapif) Line 197  low_level_input(struct tapif *tapif)
197    
198        
199    /* We allocate a pbuf chain of pbufs from the pool. */    /* We allocate a pbuf chain of pbufs from the pool. */
200    p = pbuf_alloc(PBUF_LINK, len, PBUF_POOL);    p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL);
201        
202    if(p != NULL) {    if(p != NULL) {
203      /* We iterate over the pbuf chain until we have read the entire      /* We iterate over the pbuf chain until we have read the entire
# Line 208  low_level_input(struct tapif *tapif) Line 208  low_level_input(struct tapif *tapif)
208           avaliable data in the pbuf is given by the q->len           avaliable data in the pbuf is given by the q->len
209           variable. */           variable. */
210        /* read data into(q->payload, q->len); */        /* read data into(q->payload, q->len); */
211        bcopy(bufptr, q->payload, q->len);        memcpy(q->payload, bufptr, q->len);
212        bufptr += q->len;        bufptr += q->len;
213      }      }
214      /* acknowledge that packet has been read(); */      /* acknowledge that packet has been read(); */

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