version 1.9, 2002/06/09 04:07:10 |
version 1.10, 2003/02/01 01:51:31 |
|
|
*/ |
*/ |
|
|
void |
void |
nsprotopr(off, name) |
nsprotopr(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct nspcb cb; |
struct nspcb cb; |
struct nspcb *prev, *next; |
struct nspcb *prev, *next; |
|
|
if (Aflag) |
if (Aflag) |
printf("%-8.8s ", "PCB"); |
printf("%-8.8s ", "PCB"); |
printf(Aflag ? |
printf(Aflag ? |
"%-5.5s %-6.6s %-6.6s %-18.18s %-18.18s %s\n" : |
"%-5.5s %-6.6s %-6.6s %-18.18s %-18.18s %s\n" : |
"%-5.5s %-6.6s %-6.6s %-22.22s %-22.22s %s\n", |
"%-5.5s %-6.6s %-6.6s %-22.22s %-22.22s %s\n", |
"Proto", "Recv-Q", "Send-Q", |
"Proto", "Recv-Q", "Send-Q", |
"Local Address", "Foreign Address", "(state)"); |
"Local Address", "Foreign Address", "(state)"); |
first = 0; |
first = 0; |
} |
} |
if (Aflag) |
if (Aflag) |
printf("%8lx ", ppcb); |
printf("%8lx ", ppcb); |
printf("%-5.5s %6ld %6ld ", name, sockb.so_rcv.sb_cc, |
printf("%-5.5s %6ld %6ld ", name, sockb.so_rcv.sb_cc, |
sockb.so_snd.sb_cc); |
sockb.so_snd.sb_cc); |
printf(" %-22.22s", ns_prpr(&nspcb.nsp_laddr)); |
printf(" %-22.22s", ns_prpr(&nspcb.nsp_laddr)); |
printf(" %-22.22s", ns_prpr(&nspcb.nsp_faddr)); |
printf(" %-22.22s", ns_prpr(&nspcb.nsp_faddr)); |
if (isspp) { |
if (isspp) { |
|
|
* Dump SPP statistics structure. |
* Dump SPP statistics structure. |
*/ |
*/ |
void |
void |
spp_stats(off, name) |
spp_stats(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct spp_istat spp_istat; |
struct spp_istat spp_istat; |
#define sppstat spp_istat.newstats |
#define sppstat spp_istat.newstats |
|
|
* Dump IDP statistics structure. |
* Dump IDP statistics structure. |
*/ |
*/ |
void |
void |
idp_stats(off, name) |
idp_stats(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct idpstat idpstat; |
struct idpstat idpstat; |
|
|
|
|
*/ |
*/ |
/*ARGSUSED*/ |
/*ARGSUSED*/ |
void |
void |
nserr_stats(off, name) |
nserr_stats(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct ns_errstat ns_errstat; |
struct ns_errstat ns_errstat; |
int j; |
int j; |
|
|
} |
} |
|
|
static void |
static void |
ns_erputil(z, c) |
ns_erputil(int z, int c) |
int z, c; |
|
{ |
{ |
int j; |
|
char codebuf[30]; |
|
char *name, *where; |
char *name, *where; |
|
char codebuf[30]; |
|
int j; |
|
|
for (j = 0;; j ++) { |
for (j = 0;; j ++) { |
if ((name = ns_errnames[j].name) == 0) |
if ((name = ns_errnames[j].name) == 0) |
|
|
static struct sockaddr_ns ssns = {AF_NS}; |
static struct sockaddr_ns ssns = {AF_NS}; |
|
|
static |
static |
char *ns_prpr(x) |
char *ns_prpr(struct ns_addr *x) |
struct ns_addr *x; |
|
{ |
{ |
struct sockaddr_ns *sns = &ssns; |
struct sockaddr_ns *sns = &ssns; |
|
|