version 1.15, 2003/11/08 19:17:29 |
version 1.16, 2005/03/25 17:01:03 |
|
|
if (off == 0) |
if (off == 0) |
return; |
return; |
isspx = strcmp(name, "spx") == 0; |
isspx = strcmp(name, "spx") == 0; |
kread(off, (char *)&table, sizeof (table)); |
kread(off, &table, sizeof (table)); |
prev = head = (struct ipxpcb *) |
prev = head = (struct ipxpcb *) |
&((struct ipxpcbtable *)off)->ipxpt_queue.cqh_first; |
&((struct ipxpcbtable *)off)->ipxpt_queue.cqh_first; |
next = table.ipxpt_queue.cqh_first; |
next = table.ipxpt_queue.cqh_first; |
|
|
while (next != head) { |
while (next != head) { |
kread((u_long)next, (char *)&ipxpcb, sizeof (ipxpcb)); |
kread((u_long)next, &ipxpcb, sizeof (ipxpcb)); |
if (ipxpcb.ipxp_queue.cqe_prev != prev) { |
if (ipxpcb.ipxp_queue.cqe_prev != prev) { |
printf("???\n"); |
printf("???\n"); |
break; |
break; |
|
|
if (!aflag && ipx_nullhost(ipxpcb.ipxp_faddr) ) |
if (!aflag && ipx_nullhost(ipxpcb.ipxp_faddr) ) |
continue; |
continue; |
|
|
kread((u_long)ipxpcb.ipxp_socket, |
kread((u_long)ipxpcb.ipxp_socket, &sockb, sizeof (sockb)); |
(char *)&sockb, sizeof (sockb)); |
|
if (isspx) { |
if (isspx) { |
kread((u_long)ipxpcb.ipxp_ppcb, |
kread((u_long)ipxpcb.ipxp_ppcb, &spxpcb, |
(char *)&spxpcb, sizeof (spxpcb)); |
sizeof (spxpcb)); |
} |
} |
if (first) { |
if (first) { |
printf("Active Internetwork Packet Exchange connections"); |
printf("Active Internetwork Packet Exchange connections"); |
|
|
|
|
if (off == 0) |
if (off == 0) |
return; |
return; |
kread(off, (char *)&spx_istat, sizeof (spx_istat)); |
kread(off, &spx_istat, sizeof (spx_istat)); |
printf("%s:\n", name); |
printf("%s:\n", name); |
ANY((long)spx_istat.nonucn, "connection", " dropped due to no new sockets "); |
ANY((long)spx_istat.nonucn, "connection", " dropped due to no new sockets "); |
ANY((long)spx_istat.gonawy, "connection", " terminated due to our end dying"); |
ANY((long)spx_istat.gonawy, "connection", " terminated due to our end dying"); |
|
|
|
|
if (off == 0) |
if (off == 0) |
return; |
return; |
kread(off, (char *)&ipxstat, sizeof (ipxstat)); |
kread(off, &ipxstat, sizeof (ipxstat)); |
printf("%s:\n", name); |
printf("%s:\n", name); |
ANY(ipxstat.ipxs_toosmall, "packet", " smaller than a header"); |
ANY(ipxstat.ipxs_toosmall, "packet", " smaller than a header"); |
ANY(ipxstat.ipxs_tooshort, "packet", " smaller than advertised"); |
ANY(ipxstat.ipxs_tooshort, "packet", " smaller than advertised"); |
|
|
|
|
if (off == 0) |
if (off == 0) |
return; |
return; |
kread(off, (char *)&ipx_errstat, sizeof (ipx_errstat)); |
kread(off, &ipx_errstat, sizeof (ipx_errstat)); |
printf("IPX error statistics:\n"); |
printf("IPX error statistics:\n"); |
ANY(ipx_errstat.ipx_es_error, "call", " to ipx_error"); |
ANY(ipx_errstat.ipx_es_error, "call", " to ipx_error"); |
ANY(ipx_errstat.ipx_es_oldshort, "error", |
ANY(ipx_errstat.ipx_es_oldshort, "error", |