=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/main.c,v retrieving revision 1.50 retrieving revision 1.51 diff -u -r1.50 -r1.51 --- src/usr.bin/netstat/main.c 2005/01/14 15:00:44 1.50 +++ src/usr.bin/netstat/main.c 2005/02/10 05:28:58 1.51 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.50 2005/01/14 15:00:44 mcbride Exp $ */ +/* $OpenBSD: main.c,v 1.51 2005/02/10 05:28:58 itojun Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94"; #else -static char *rcsid = "$OpenBSD: main.c,v 1.50 2005/01/14 15:00:44 mcbride Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.51 2005/02/10 05:28:58 itojun Exp $"; #endif #endif /* not lint */ @@ -185,6 +185,10 @@ { "_pfsyncstats" }, #define N_PIMSTAT 59 { "_pimstat" }, +#define N_DCCPSTAT 60 + { "_dccpstat" }, +#define N_DCCPBTABLE 61 + { "_dccpbtable" }, { ""}, }; @@ -200,6 +204,10 @@ tcp_stats, "tcp" }, { N_UDBTABLE, N_UDPSTAT, 1, protopr, udp_stats, "udp" }, +#ifdef DCCP + { N_DCCPBTABLE, N_DCCPSTAT, 1, protopr, + dccp_stats, "dccp" }, +#endif { N_RAWIPTABLE, N_IPSTAT, 1, protopr, ip_stats, "ip" }, { -1, N_ICMPSTAT, 1, 0, @@ -232,6 +240,10 @@ 0, "tcp" }, { N_UDBTABLE, N_UDPSTAT, 1, ip6protopr, 0, "udp" }, +#ifdef DCCP + { N_DCCPBTABLE, N_DCCPSTAT, 1, ip6protopr, + dccp_stats, "dccp" }, +#endif { N_RAWIP6TABLE,N_IP6STAT, 1, ip6protopr, ip6_stats, "ip6" }, { -1, N_ICMP6STAT, 1, 0,