diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-26 19:01:16 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-26 19:01:16 +0000 |
commit | 527e33ce73c0460186406679b20670ac9ebe6972 (patch) | |
tree | df8a11ced70873338c2fc498a3aba2f32bf7a53d /ip_output.c | |
parent | 93ebd039aab8b830e0887dd59360f2ba8de75c07 (diff) | |
download | slirp-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 'ip_output.c')
-rw-r--r-- | ip_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ip_output.c b/ip_output.c index 6cafc55..a014249 100644 --- a/ip_output.c +++ b/ip_output.c @@ -94,7 +94,7 @@ struct mbuf *m0; /* * If small enough for interface, can just send directly. */ - if ((u_int16_t)ip->ip_len <= if_mtu) { + if ((u_int16_t)ip->ip_len <= IF_MTU) { ip->ip_len = htons((u_int16_t)ip->ip_len); ip->ip_off = htons((u_int16_t)ip->ip_off); ip->ip_sum = 0; @@ -114,7 +114,7 @@ struct mbuf *m0; goto bad; } - len = (if_mtu - hlen) & ~7; /* ip databytes per packet */ + len = (IF_MTU - hlen) & ~7; /* ip databytes per packet */ if (len < 8) { error = -1; goto bad; @@ -138,7 +138,7 @@ struct mbuf *m0; STAT(ipstat.ips_odropped++); goto sendorfree; } - m->m_data += if_maxlinkhdr; + m->m_data += IF_MAXLINKHDR; mhip = mtod(m, struct ip *); *mhip = *ip; |