summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1996-07-10 19:44:30 +0000
committerjulian <julian@FreeBSD.org>1996-07-10 19:44:30 +0000
commit9277e63302140b5062d96a9394cdec2b83b2e70a (patch)
tree5affe14a214c46b4bd58b410a49350e34137ed18 /usr.bin/netstat
parent366bddd7f5f46d8b7d51ff94c668b40ccecbbc23 (diff)
downloadFreeBSD-src-9277e63302140b5062d96a9394cdec2b83b2e70a.zip
FreeBSD-src-9277e63302140b5062d96a9394cdec2b83b2e70a.tar.gz
Adding changes to ipfw and the kernel to support ip packet diversion..
This stuff should not be too destructive if the IPDIVERT is not compiled in.. be aware that this changes the size of the ip_fw struct so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 0a6294c..4bf8719 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -137,6 +137,10 @@ struct nlist nl[] = {
{ "_ddpstat"},
#define N_DDPCB 36
{ "_ddpcb"},
+#define N_DIVPCB 37
+ { "_divcb"},
+#define N_DIVSTAT 38
+ { "_divstat"},
{ "" },
};
@@ -152,6 +156,8 @@ struct protox {
tcp_stats, "tcp" },
{ N_UDB, N_UDPSTAT, 1, protopr,
udp_stats, "udp" },
+ { N_DIVPCB, N_DIVSTAT, 1, protopr,
+ NULL, "divert" }, /* no stat structure yet */
{ -1, N_IPSTAT, 1, 0,
ip_stats, "ip" },
{ -1, N_ICMPSTAT, 1, 0,
OpenPOWER on IntegriCloud