summaryrefslogtreecommitdiffstats
path: root/sys/netipsec
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-04-04 15:57:27 +0000
committerae <ae@FreeBSD.org>2014-04-04 15:57:27 +0000
commita503000e26af8aa1890fa137a25523929e0133e8 (patch)
tree127c6bc38b86eaf7dbcd98ad10f84468d4890463 /sys/netipsec
parent11ab69a2c36ce7d6c9d7bc5a2f574fa503ca7e56 (diff)
downloadFreeBSD-src-a503000e26af8aa1890fa137a25523929e0133e8.zip
FreeBSD-src-a503000e26af8aa1890fa137a25523929e0133e8.tar.gz
Remove unused variable.
MFC after: 1 week Sponsored by: Yandex LLC
Diffstat (limited to 'sys/netipsec')
-rw-r--r--sys/netipsec/xform_ipip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netipsec/xform_ipip.c b/sys/netipsec/xform_ipip.c
index ca37e17..68191c3 100644
--- a/sys/netipsec/xform_ipip.c
+++ b/sys/netipsec/xform_ipip.c
@@ -170,7 +170,6 @@ _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
struct ip6_hdr *ip6 = NULL;
u_int8_t itos;
#endif
- u_int8_t nxt;
int isr;
u_int8_t otos;
u_int8_t v;
@@ -275,14 +274,12 @@ _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
#ifdef INET
case 4:
ipo = mtod(m, struct ip *);
- nxt = ipo->ip_p;
ip_ecn_egress(V_ip4_ipsec_ecn, &otos, &ipo->ip_tos);
break;
#endif /* INET */
#ifdef INET6
case 6:
ip6 = (struct ip6_hdr *) ipo;
- nxt = ip6->ip6_nxt;
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
ip_ecn_egress(V_ip6_ipsec_ecn, &otos, &itos);
ip6->ip6_flow &= ~htonl(0xff << 20);
OpenPOWER on IntegriCloud