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)
Nov 18 2024, 1:38 AM
Unknown Object (File)
Nov 14 2024, 3:45 PM
Unknown Object (File)
Nov 5 2024, 3:32 AM
Unknown Object (File)
Nov 3 2024, 5:33 PM
Unknown Object (File)
Oct 6 2024, 8:37 AM
Unknown Object (File)
Sep 24 2024, 10:17 AM
Unknown Object (File)
Sep 23 2024, 3:45 PM
Unknown Object (File)
Sep 12 2024, 7:40 PM
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.