aboutsummaryrefslogtreecommitdiff
path: root/if.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 19:01:16 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 19:01:16 +0000
commit527e33ce73c0460186406679b20670ac9ebe6972 (patch)
treedf8a11ced70873338c2fc498a3aba2f32bf7a53d /if.c
parent93ebd039aab8b830e0887dd59360f2ba8de75c07 (diff)
downloadslirp-527e33ce73c0460186406679b20670ac9ebe6972.zip
slirp-527e33ce73c0460186406679b20670ac9ebe6972.tar.gz
slirp-527e33ce73c0460186406679b20670ac9ebe6972.tar.bz2
Use const and static as needed, disable unused code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3452 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'if.c')
-rw-r--r--if.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/if.c b/if.c
index ad5061c..c939029 100644
--- a/if.c
+++ b/if.c
@@ -7,9 +7,6 @@
#include <slirp.h>
-int if_mtu, if_mru;
-int if_comp;
-int if_maxlinkhdr;
int if_queued = 0; /* Number of packets queued so far */
int if_thresh = 10; /* Number of packets queued before we start sending
* (to prevent allocing too many mbufs) */
@@ -36,23 +33,6 @@ void ifs_remque(ifm) struct mbuf *ifm;
void if_init()
{
-#if 0
- /*
- * Set if_maxlinkhdr to 48 because it's 40 bytes for TCP/IP,
- * and 8 bytes for PPP, but need to have it on an 8byte boundary
- */
-#ifdef USE_PPP
- if_maxlinkhdr = 48;
-#else
- if_maxlinkhdr = 40;
-#endif
-#else
- /* 2 for alignment, 14 for ethernet, 40 for TCP/IP */
- if_maxlinkhdr = 2 + 14 + 40;
-#endif
- if_mtu = 1500;
- if_mru = 1500;
- if_comp = IF_AUTOCOMP;
if_fastq.ifq_next = if_fastq.ifq_prev = &if_fastq;
if_batchq.ifq_next = if_batchq.ifq_prev = &if_batchq;
// sl_compress_init(&comp_s);