Revision 0d62c4cf slirp/if.h
b/slirp/if.h | ||
---|---|---|
17 | 17 |
#define IF_MRU 1500 |
18 | 18 |
#define IF_COMP IF_AUTOCOMP /* Flags for compression */ |
19 | 19 |
|
20 |
#if 0 |
|
21 |
/* |
|
22 |
* Set if_maxlinkhdr to 48 because it's 40 bytes for TCP/IP, |
|
23 |
* and 8 bytes for PPP, but need to have it on an 8byte boundary |
|
24 |
*/ |
|
25 |
#ifdef USE_PPP |
|
26 |
#define IF_MAXLINKHDR 48 |
|
27 |
#else |
|
28 |
#define IF_MAXLINKHDR 40 |
|
29 |
#endif |
|
30 |
#else |
|
31 |
/* 2 for alignment, 14 for ethernet, 40 for TCP/IP */ |
|
20 |
/* 2 for alignment, 14 for ethernet, 40 for TCP/IP */ |
|
32 | 21 |
#define IF_MAXLINKHDR (2 + 14 + 40) |
33 |
#endif |
|
34 | 22 |
|
35 | 23 |
extern int if_queued; /* Number of packets queued so far */ |
36 | 24 |
|
Also available in: Unified diff