svn commit: r264125 - head/sys/netipsec
Andrey V. Elsukov
ae at FreeBSD.org
Fri Apr 4 15:57:28 UTC 2014
Author: ae
Date: Fri Apr 4 15:57:27 2014
New Revision: 264125
URL: http://svnweb.freebsd.org/changeset/base/264125
Log:
Remove unused variable.
MFC after: 1 week
Sponsored by: Yandex LLC
Modified:
head/sys/netipsec/xform_ipip.c
Modified: head/sys/netipsec/xform_ipip.c
==============================================================================
--- head/sys/netipsec/xform_ipip.c Fri Apr 4 15:55:38 2014 (r264124)
+++ head/sys/netipsec/xform_ipip.c Fri Apr 4 15:57:27 2014 (r264125)
@@ -170,7 +170,6 @@ _ipip_input(struct mbuf *m, int iphlen,
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,
#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);
More information about the svn-src-head
mailing list