version 1.10, 2002/05/27 01:50:36 |
version 1.11, 2003/02/01 01:51:31 |
|
|
* Dump esis stats |
* Dump esis stats |
*/ |
*/ |
void |
void |
esis_stats(off, name) |
esis_stats(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct esis_stat esis_stat; |
struct esis_stat esis_stat; |
|
|
|
|
* Dump clnp statistics structure. |
* Dump clnp statistics structure. |
*/ |
*/ |
void |
void |
clnp_stats(off, name) |
clnp_stats(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct clnp_stat clnp_stat; |
struct clnp_stat clnp_stat; |
|
|
|
|
* Dump CLTP statistics structure. |
* Dump CLTP statistics structure. |
*/ |
*/ |
void |
void |
cltp_stats(off, name) |
cltp_stats(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct cltpstat cltpstat; |
struct cltpstat cltpstat; |
|
|
|
|
* -a (all) flag is specified. |
* -a (all) flag is specified. |
*/ |
*/ |
void |
void |
iso_protopr(off, name) |
iso_protopr(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
struct isopcb cb; |
struct isopcb cb; |
struct isopcb *prev, *next; |
struct isopcb *prev, *next; |
|
|
} |
} |
|
|
void |
void |
iso_protopr1(kern_addr, istp) |
iso_protopr1(u_long kern_addr, int istp) |
u_long kern_addr; |
|
int istp; |
|
{ |
{ |
if (first) { |
if (first) { |
printf("Active ISO net connections"); |
printf("Active ISO net connections"); |
|
|
printf("%-5.5s %6ld %6ld ", "tp", sockb.so_rcv.sb_cc, |
printf("%-5.5s %6ld %6ld ", "tp", sockb.so_rcv.sb_cc, |
sockb.so_snd.sb_cc); |
sockb.so_snd.sb_cc); |
if (istp && tpcb.tp_lsuffixlen) { |
if (istp && tpcb.tp_lsuffixlen) { |
hexprint(tpcb.tp_lsuffixlen, tpcb.tp_lsuffix, "()"); |
hexprint(tpcb.tp_lsuffixlen, tpcb.tp_lsuffix, "()"); |
printf("\t"); |
printf("\t"); |
} else if (isopcb.isop_laddr == 0) |
} else if (isopcb.isop_laddr == 0) |
printf("*.*\t"); |
printf("*.*\t"); |
else { |
else { |
if ((char *)isopcb.isop_laddr == ((char *)kern_addr) + |
if ((char *)isopcb.isop_laddr == ((char *)kern_addr) + |
_offsetof(struct isopcb, isop_sladdr)) |
_offsetof(struct isopcb, isop_sladdr)) |
|
|
} |
} |
|
|
void |
void |
tp_protopr(off, name) |
tp_protopr(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
extern char *tp_sstring[]; |
extern char *tp_sstring[]; |
struct tp_ref *tpr, *tpr_base; |
struct tp_ref *tpr, *tpr_base; |
|
|
} |
} |
|
|
void |
void |
tp_inproto(pcb) |
tp_inproto(u_long pcb) |
u_long pcb; |
|
{ |
{ |
struct inpcb inpcb; |
struct inpcb inpcb; |
|
|
|
|
|
|
#ifdef notdef |
#ifdef notdef |
char * |
char * |
isonetname(iso) |
isonetname(struct iso_addr *iso) |
struct iso_addr *iso; |
|
{ |
{ |
struct sockaddr_iso sa; |
struct sockaddr_iso sa; |
struct iso_hostent *ihe = 0; |
struct iso_hostent *ihe = 0; |
|
|
} |
} |
|
|
static void |
static void |
isonetprint(iso, sufx, sufxlen, islocal) |
isonetprint(struct iso_addr *iso, char *sufx, u_short sufxlen, int islocal) |
struct iso_addr *iso; |
|
char *sufx; |
|
u_short sufxlen; |
|
int islocal; |
|
{ |
{ |
struct iso_hostent *iso_getserventrybytsel(), *ihe; |
struct iso_hostent *iso_getserventrybytsel(), *ihe; |
struct iso_hostent Ihe; |
struct iso_hostent Ihe; |
|
|
} |
} |
} else |
} else |
snprintf(cp, line + sizeof line - cp, "*"); |
snprintf(cp, line + sizeof line - cp, "*"); |
/* |
|
fprintf(stdout, Aflag?" %-18.18s":" %-22.22s", line); |
|
*/ |
|
|
|
if (strlen(line) > Alen ) { |
if (strlen(line) > Alen ) { |
fprintf(stdout, " %s", line); |
fprintf(stdout, " %s", line); |
|
|
|
|
#ifdef notdef |
#ifdef notdef |
static void |
static void |
x25_protopr(off, name) |
x25_protopr(u_long off, char *name) |
u_long off; |
|
char *name; |
|
{ |
{ |
static char *xpcb_states[] = { |
static char *xpcb_states[] = { |
"CLOSED", |
"CLOSED", |
|
|
struct tp_stat tp_stat; |
struct tp_stat tp_stat; |
|
|
void |
void |
tp_stats(off, name) |
tp_stats(caddr_t off, char *name) |
caddr_t off, name; |
|
{ |
{ |
if (off == 0) { |
if (off == 0) { |
printf("TP not configured\n\n"); |
printf("TP not configured\n\n"); |
|
|
#define OUT stdout |
#define OUT stdout |
|
|
static void |
static void |
tprintstat(s, indent) |
tprintstat(struct tp_stat *s, int indent) |
struct tp_stat *s; |
|
int indent; |
|
{ |
{ |
fprintf(OUT, |
fprintf(OUT, |
"%*sReceiving:\n",indent," "); |
"%*sReceiving:\n",indent," "); |
|
|
#endif |
#endif |
|
|
static void |
static void |
isonetprint(siso, islocal) |
isonetprint(struct sockaddr_iso *siso, int islocal) |
struct sockaddr_iso *siso; |
|
int islocal; |
|
{ |
{ |
hexprint(siso->siso_nlen, siso->siso_addr.isoa_genaddr, "{}"); |
hexprint(siso->siso_nlen, siso->siso_addr.isoa_genaddr, "{}"); |
if (siso->siso_tlen || siso->siso_slen || siso->siso_plen) |
if (siso->siso_tlen || siso->siso_slen || siso->siso_plen) |
|
|
static char hexlist[] = "0123456789abcdef", obuf[128]; |
static char hexlist[] = "0123456789abcdef", obuf[128]; |
|
|
static void |
static void |
hexprint(n, buf, delim) |
hexprint(int n, char *buf, char *delim) |
int n; |
|
char *buf, *delim; |
|
{ |
{ |
u_char *in = (u_char *)buf, *top = in + n; |
u_char *in = (u_char *)buf, *top = in + n; |
char *out = obuf; |
char *out = obuf; |