Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 15:57:27 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264125 - head/sys/netipsec
Message-ID:  <201404041557.s34FvR8J065051@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041557.s34FvR8J065051>