Page MenuHomeFreeBSD

Update netstat to use sysctls for IPsec statistics
ClosedPublic

Authored by gnn on Dec 16 2015, 1:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 9:58 AM
Unknown Object (File)
Fri, Apr 19, 9:57 AM
Unknown Object (File)
Feb 26 2024, 8:16 AM
Unknown Object (File)
Jan 31 2024, 9:09 PM
Unknown Object (File)
Dec 21 2023, 9:51 AM
Unknown Object (File)
Dec 20 2023, 2:12 AM
Unknown Object (File)
Oct 7 2023, 3:23 PM
Unknown Object (File)
Sep 5 2023, 7:11 AM
Subscribers

Details

Summary

The IPSec code exposes sysctls for all stats, there is no need to read KVM to get these stats. Fixing this issue makes the -z (zero) flag work correctly for all IPSec statistics which has the positive knock on effect of allowing benchmarks, testing and debugging to be done with a reasonable set of statistics.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gnn retitled this revision from to Update netstat to use sysctls for IPsec statistics.
gnn updated this object.
gnn edited the test plan for this revision. (Show Details)
gnn added a reviewer: network.
ae added a reviewer: ae.
ae added a subscriber: ae.

Looks good to me, except two lines in ipsec_stats(), that are not wrapped according style(9).

This revision is now accepted and ready to land.Dec 16 2015, 12:02 PM
This revision was automatically updated to reflect the committed changes.