Fix ips_out_nosa errors accounting.

MFC after:	1 week
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-11-12 14:00:49 +00:00
parent 2b21d0e883
commit f3c93842bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274434

View File

@ -358,7 +358,16 @@ ipsec_nextisr(
* 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;