summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-06-30 08:02:38 +0000
committerluigi <luigi@FreeBSD.org>2002-06-30 08:02:38 +0000
commit9180e65944d96a4628487ffa9ee055bf68412674 (patch)
tree1a97122cfeacaa89a3c3b04eea2833c358193df6 /sys/net/if_ethersubr.c
parente88eb0a6e9c31e326748ae46bf69ee72fa1ce16c (diff)
downloadFreeBSD-src-9180e65944d96a4628487ffa9ee055bf68412674.zip
FreeBSD-src-9180e65944d96a4628487ffa9ee055bf68412674.tar.gz
Remove one useless variable.
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 4b040ab..6a1a85d 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -150,7 +150,7 @@ ether_output(ifp, m, dst, rt0)
u_char esrc[6], edst[6];
register struct rtentry *rt;
register struct ether_header *eh;
- int off, loop_copy = 0;
+ int loop_copy = 0;
int hlen; /* link layer header lenght */
struct arpcom *ac = IFP2AC(ifp);
@@ -187,7 +187,6 @@ ether_output(ifp, m, dst, rt0)
case AF_INET:
if (!arpresolve(ifp, rt, m, dst, edst, rt0))
return (0); /* if not yet resolved */
- off = m->m_pkthdr.len - m->m_len;
type = htons(ETHERTYPE_IP);
break;
#endif
@@ -197,7 +196,6 @@ ether_output(ifp, m, dst, rt0)
/* Something bad happened */
return(0);
}
- off = m->m_pkthdr.len - m->m_len;
type = htons(ETHERTYPE_IPV6);
break;
#endif
OpenPOWER on IntegriCloud