diff options
author | ae <ae@FreeBSD.org> | 2014-11-12 14:00:49 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2014-11-12 14:00:49 +0000 |
commit | bc6c58f45f17aa7b5fb93207b5a64992b2c7788a (patch) | |
tree | 9f023789791886e01bd08eed27630aeab53c6f67 /sys | |
parent | 834e6d1d3024c33eb2ca52fa8dd87fe40882d646 (diff) | |
download | FreeBSD-src-bc6c58f45f17aa7b5fb93207b5a64992b2c7788a.zip FreeBSD-src-bc6c58f45f17aa7b5fb93207b5a64992b2c7788a.tar.gz |
Fix ips_out_nosa errors accounting.
MFC after: 1 week
Sponsored by: Yandex LLC
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netipsec/ipsec_output.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_output.c b/sys/netipsec/ipsec_output.c index 1f03196..83735b0 100644 --- a/sys/netipsec/ipsec_output.c +++ b/sys/netipsec/ipsec_output.c @@ -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; |