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; |
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 |
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; |