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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to