version 1.37, 2003/06/12 07:39:16 |
version 1.38, 2003/06/26 21:59:11 |
|
|
}; |
}; |
|
|
struct protox { |
struct protox { |
u_char pr_index; /* index into nlist of cb head */ |
u_char pr_index; /* index into nlist of cb head */ |
u_char pr_sindex; /* index into nlist of stat block */ |
u_char pr_sindex; /* index into nlist of stat block */ |
u_char pr_wanted; /* 1 if wanted, 0 otherwise */ |
u_char pr_wanted; /* 1 if wanted, 0 otherwise */ |
void (*pr_cblocks)(); /* control blocks printing routine */ |
void (*pr_cblocks)(u_long, char *); /* control blocks printing routine */ |
void (*pr_stats)(); /* statistics printing routine */ |
void (*pr_stats)(u_long, char *); /* statistics printing routine */ |
char *pr_name; /* well-known name */ |
char *pr_name; /* well-known name */ |
} protox[] = { |
} protox[] = { |
{ N_TCBTABLE, N_TCPSTAT, 1, protopr, |
{ N_TCBTABLE, N_TCPSTAT, 1, protopr, |
tcp_stats, "tcp" }, |
tcp_stats, "tcp" }, |
|
|
static void |
static void |
printproto(struct protox *tp, char *name) |
printproto(struct protox *tp, char *name) |
{ |
{ |
void (*pr)(); |
void (*pr)(u_long, char *); |
u_char i; |
u_char i; |
|
|
if (sflag) { |
if (sflag) { |