diff --git a/freebsd5/usr.bin/netstat/main.c b/freebsd5/usr.bin/netstat/main.c index e958bbc581..75a4ab21e3 100644 --- a/freebsd5/usr.bin/netstat/main.c +++ b/freebsd5/usr.bin/netstat/main.c @@ -138,6 +138,10 @@ static struct nlist nl[] = { { "_clust_lowm" }, #define N_CARPSTAT 33 { "_carpstats" }, +#define N_SCTPEPINFO 34 + { "_sctppcbinfo" }, +#define N_SCTPPEGS 35 + { "_sctp_pegs" }, { "" }, }; @@ -161,6 +165,10 @@ struct protox { { -1, -1, 1, protopr, dccp_stats, NULL, "dccp", IPPROTO_DCCP }, #endif /* DCCP */ +#ifdef SCTP + { N_SCTPEPINFO, N_SCTPPEGS, 1, sctp_protopr, + sctp_stats, NULL, "sctp", 0}, +#endif /* SCTP */ { -1, -1, 1, protopr, NULL, NULL, "divert",IPPROTO_DIVERT }, { -1, -1, 1, protopr, diff --git a/freebsd5/usr.bin/netstat/netstat.h b/freebsd5/usr.bin/netstat/netstat.h index 34728fa7a8..c11b6273cb 100644 --- a/freebsd5/usr.bin/netstat/netstat.h +++ b/freebsd5/usr.bin/netstat/netstat.h @@ -98,6 +98,11 @@ void inet6print(struct in6_addr *, int, const char *, int); void pfkey_stats(u_long, const char *, int); #endif +#ifdef SCTP +void sctp_protopr(u_long, const char *, int); +void sctp_stats(u_long, const char *, int); +#endif + void bdg_stats(u_long, const char *, int); void mbpr(u_long, u_long, u_long, u_long, u_long, u_long,