[BACK]Return to ipx.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / netstat

Diff for /src/usr.bin/netstat/Attic/ipx.c between version 1.15 and 1.16

version 1.15, 2003/11/08 19:17:29 version 1.16, 2005/03/25 17:01:03
Line 97 
Line 97 
         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;
Line 114 
Line 114 
                 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");
Line 167 
Line 166 
   
         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");
Line 242 
Line 241 
   
         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");
Line 280 
Line 279 
   
         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",

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16