Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2014 14:00:50 +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: r274434 - head/sys/netipsec
Message-ID:  <201411121400.sACE0oCr092408@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Nov 12 14:00:49 2014
New Revision: 274434
URL: https://svnweb.freebsd.org/changeset/base/274434

Log:
  Fix ips_out_nosa errors accounting.
  
  MFC after:	1 week
  Sponsored by:	Yandex LLC

Modified:
  head/sys/netipsec/ipsec_output.c

Modified: head/sys/netipsec/ipsec_output.c
==============================================================================
--- head/sys/netipsec/ipsec_output.c	Wed Nov 12 13:19:40 2014	(r274433)
+++ head/sys/netipsec/ipsec_output.c	Wed Nov 12 14:00:49 2014	(r274434)
@@ -358,7 +358,16 @@ again:
 		 * this packet because it is responsibility for
 		 * upper layer to retransmit the packet.
 		 */
-		IPSECSTAT_INC(ips_out_nosa);
+		switch(af) {
+		case AF_INET:
+			IPSECSTAT_INC(ips_out_nosa);
+			break;
+#ifdef INET6
+		case AF_INET6:
+			IPSEC6STAT_INC(ips_out_nosa);
+			break;
+#endif
+		}
 		goto bad;
 	}
 	sav = isr->sav;



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