svn commit: r274434 - head/sys/netipsec
Andrey V. Elsukov
ae at FreeBSD.org
Wed Nov 12 14:00:50 UTC 2014
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;
More information about the svn-src-all
mailing list