[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.1 and 1.2

version 1.1, 1996/08/16 09:29:32 version 1.2, 1997/06/29 20:18:00
Line 136 
Line 136 
                         first = 0;                          first = 0;
                 }                  }
                 if (Aflag)                  if (Aflag)
                         printf("%8x ", ipxpcb.ipxp_ppcb);                          printf("%8p ", ipxpcb.ipxp_ppcb);
                 printf("%-5.5s %6d %6d ", 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", ipx_prpr(&ipxpcb.ipxp_laddr));                  printf("  %-22.22s", ipx_prpr(&ipxpcb.ipxp_laddr));
                 printf(" %-22.22s", ipx_prpr(&ipxpcb.ipxp_faddr));                  printf(" %-22.22s", ipx_prpr(&ipxpcb.ipxp_faddr));
Line 152 
Line 152 
         }          }
 }  }
 #define ANY(x,y,z) \  #define ANY(x,y,z) \
         ((x) ? printf("\t%d %s%s%s -- %s\n",x,y,plural(x),z,"x") : 0)          ((x) ? printf("\t%ld %s%s%s -- %s\n",x,y,plural(x),z,"x") : 0)
   
 /*  /*
  * Dump SPX statistics structure.   * Dump SPX statistics structure.
Line 169 
Line 169 
                 return;                  return;
         kread(off, (char *)&spx_istat, sizeof (spx_istat));          kread(off, (char *)&spx_istat, sizeof (spx_istat));
         printf("%s:\n", name);          printf("%s:\n", name);
         ANY(spx_istat.nonucn, "connection", " dropped due to no new sockets ");          ANY((long)spx_istat.nonucn, "connection", " dropped due to no new sockets ");
         ANY(spx_istat.gonawy, "connection", " terminated due to our end dying");          ANY((long)spx_istat.gonawy, "connection", " terminated due to our end dying");
         ANY(spx_istat.nonucn, "connection",          ANY((long)spx_istat.nonucn, "connection",
             " dropped due to inability to connect");              " dropped due to inability to connect");
         ANY(spx_istat.noconn, "connection",          ANY((long)spx_istat.noconn, "connection",
             " dropped due to inability to connect");              " dropped due to inability to connect");
         ANY(spx_istat.notme, "connection",          ANY((long)spx_istat.notme, "connection",
             " incompleted due to mismatched id's");              " incompleted due to mismatched id's");
         ANY(spx_istat.wrncon, "connection", " dropped due to mismatched id's");          ANY((long)spx_istat.wrncon, "connection", " dropped due to mismatched id's");
         ANY(spx_istat.bdreas, "packet", " dropped out of sequence");          ANY((long)spx_istat.bdreas, "packet", " dropped out of sequence");
         ANY(spx_istat.lstdup, "packet", " duplicating the highest packet");          ANY((long)spx_istat.lstdup, "packet", " duplicating the highest packet");
         ANY(spx_istat.notyet, "packet", " refused as exceeding allocation");          ANY((long)spx_istat.notyet, "packet", " refused as exceeding allocation");
         ANY(spxstat.spxs_connattempt, "connection", " initiated");          ANY(spxstat.spxs_connattempt, "connection", " initiated");
         ANY(spxstat.spxs_accepts, "connection", " accepted");          ANY(spxstat.spxs_accepts, "connection", " accepted");
         ANY(spxstat.spxs_connects, "connection", " established");          ANY(spxstat.spxs_connects, "connection", " established");

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2