Revision 9634d903 slirp/if.c

b/slirp/if.c
7 7

  
8 8
#include <slirp.h>
9 9

  
10
int if_mtu, if_mru;
11
int if_comp;
12
int if_maxlinkhdr;
13 10
int     if_queued = 0;                  /* Number of packets queued so far */
14 11
int     if_thresh = 10;                 /* Number of packets queued before we start sending
15 12
					 * (to prevent allocing too many mbufs) */
......
41 38
void
42 39
if_init()
43 40
{
44
#if 0
45
	/*
46
	 * Set if_maxlinkhdr to 48 because it's 40 bytes for TCP/IP,
47
	 * and 8 bytes for PPP, but need to have it on an 8byte boundary
48
	 */
49
#ifdef USE_PPP
50
	if_maxlinkhdr = 48;
51
#else
52
	if_maxlinkhdr = 40;
53
#endif
54
#else
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;
60
	if_comp = IF_AUTOCOMP;
61 41
	if_fastq.ifq_next = if_fastq.ifq_prev = &if_fastq;
62 42
	if_batchq.ifq_next = if_batchq.ifq_prev = &if_batchq;
63 43
        //	sl_compress_init(&comp_s);

Also available in: Unified diff