]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for printing IPSEC protocol stats if the kernel was compiled
authorKelly Yancey <kbyanc@FreeBSD.org>
Wed, 28 Dec 2005 20:36:55 +0000 (20:36 +0000)
committerKelly Yancey <kbyanc@FreeBSD.org>
Wed, 28 Dec 2005 20:36:55 +0000 (20:36 +0000)
commit100b98db7576b0ca1bbc465795480b0202014f4b
tree2ab5b6014aab6dcec0f6fad9abd7981ca2b4acb9
parent5108cc565a0265d2c6fb4c5425bfead411546955
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]