]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for printing IPSEC protocol stats if the kernel was compiled
authorkbyanc <kbyanc@FreeBSD.org>
Wed, 28 Dec 2005 20:36:55 +0000 (20:36 +0000)
committerkbyanc <kbyanc@FreeBSD.org>
Wed, 28 Dec 2005 20:36:55 +0000 (20:36 +0000)
commit980b33f2248dbad05539c02647a069261d17092d
tree2ab5b6014aab6dcec0f6fad9abd7981ca2b4acb9
parentc5d0d5cac34408eff811c048ff4b8eaa0ef83b4f
Add support for printing IPSEC protocol stats if the kernel was compiled
with FAST_IPSEC rather than the KAME IPSEC stack.

Note that the output of "netstat -s -p ipsec" differs depending on which
stack is compiled into the kernel since they each keep different stats.
This delta also adds the "esp", "ah", and "ipcomp" protocol stats, which
are also available when the kernel is compiled with the FAST_IPSEC stack
(e.g. "netstat -s -p esp").

Submitted by: Matt Titus <titus at nttmcl dot com>
MFC after: 3 days
usr.bin/netstat/Makefile
usr.bin/netstat/ipsec.c
usr.bin/netstat/main.c
usr.bin/netstat/netstat.h
usr.bin/netstat/pfkey.c [new file with mode: 0644]