ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/if.c
(Generate patch)

Comparing BasiliskII/src/slirp/if.c (file contents):
Revision 1.1 by gbeauche, 2005-05-13T09:00:59Z vs.
Revision 1.3 by asvitkine, 2011-12-27T07:29:34Z

# Line 52 | Line 52 | if_init()
52          if_maxlinkhdr = 40;
53   #endif
54   #else
55 <        /* 14 for ethernet + 40 */
56 <        if_maxlinkhdr = 14 + 40;
55 >        /* 2 for alignment, 14 for ethernet, 40 for TCP/IP */
56 >        if_maxlinkhdr = 2 + 14 + 40;
57   #endif
58          if_mtu = 1500;
59          if_mru = 1500;
# Line 274 | Line 274 | if_start(void)
274             return; /* Nothing to do */
275          
276   again:
277 <        /* check if we can really output */
278 <        if (!slirp_can_output())
279 <            return;
277 >        /* check if we can really output */
278 >        if (!slirp_can_output())
279 >                return;
280  
281          /*
282           * See which queue to get next packet from
# Line 313 | Line 313 | if_start(void)
313          }
314          
315          /* Encapsulate the packet for sending */
316 <        if_encap(ifm->m_data, ifm->m_len);
316 >        if_encap((uint8_t*)ifm->m_data, ifm->m_len);
317  
318 <        m_free(ifm);
318 >        m_free(ifm);
319  
320          if (if_queued)
321             goto again;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines