Skip to content

Commit

Permalink
hooks sctp-related function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
suz committed Jul 18, 2005
1 parent a9fe4a5 commit 4173b2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions freebsd5/usr.bin/netstat/main.c
Expand Up @@ -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" },
{ "" },
};

Expand All @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions freebsd5/usr.bin/netstat/netstat.h
Expand Up @@ -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,
Expand Down

0 comments on commit 4173b2d

Please sign in to comment.