From 9277e63302140b5062d96a9394cdec2b83b2e70a Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 10 Jul 1996 19:44:30 +0000 Subject: 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. --- usr.bin/netstat/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr.bin/netstat') 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, -- cgit v1.1