[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.10 and 1.11

version 1.10, 2002/02/16 21:27:50 version 1.11, 2002/05/27 01:50:36
Line 236 
Line 236 
         ANY(spxstat.spxs_rcvwinupd, "rcvd window update packet", "");          ANY(spxstat.spxs_rcvwinupd, "rcvd window update packet", "");
 }  }
 #undef ANY  #undef ANY
 #define ANY(x,y,z)  ((x) ? printf("\t%ld %s%s%s\n",x,y,plural(x),z) : 0)  #define ANY(x,y,z)      ((x) ? printf("\t%ld %s%s%s\n",x,y,plural(x),z) : 0)
   
 /*  /*
  * Dump IPX statistics structure.   * Dump IPX statistics structure.
Line 301 
Line 301 
                 " received incomplete");                  " received incomplete");
         ANY(ipx_errstat.ipx_es_badcode, "error packet",          ANY(ipx_errstat.ipx_es_badcode, "error packet",
                 " received of unknown type");                  " received of unknown type");
         for(j = 0; j < IPX_ERR_MAX; j ++) {          for (j = 0; j < IPX_ERR_MAX; j ++) {
                 z = ipx_errstat.ipx_es_outhist[j];                  z = ipx_errstat.ipx_es_outhist[j];
                 if (z && histoprint) {                  if (z && histoprint) {
                         printf("Output Error Histogram:\n");                          printf("Output Error Histogram:\n");
Line 311 
Line 311 
   
         }          }
         histoprint = 1;          histoprint = 1;
         for(j = 0; j < IPX_ERR_MAX; j ++) {          for (j = 0; j < IPX_ERR_MAX; j ++) {
                 z = ipx_errstat.ipx_es_inhist[j];                  z = ipx_errstat.ipx_es_inhist[j];
                 if (z && histoprint) {                  if (z && histoprint) {
                         printf("Input Error Histogram:\n");                          printf("Input Error Histogram:\n");
Line 329 
Line 329 
         char codebuf[30];          char codebuf[30];
         char *name, *where;          char *name, *where;
   
         for(j = 0;; j ++) {          for (j = 0;; j ++) {
                 if ((name = ipx_errnames[j].name) == 0)                  if ((name = ipx_errnames[j].name) == 0)
                         break;                          break;
                 if (ipx_errnames[j].code == c)                  if (ipx_errnames[j].code == c)
                         break;                          break;
         }          }
         if (name == 0)  {          if (name == 0) {
                 if (c > 01000)                  if (c > 01000)
                         where = "in transit";                          where = "in transit";
                 else                  else
Line 344 
Line 344 
                     "Unknown IPX error code 0%o", c);                      "Unknown IPX error code 0%o", c);
                 name = codebuf;                  name = codebuf;
         } else          } else
                 where =  ipx_errnames[j].where;                  where = ipx_errnames[j].where;
         ANY(z, name, where);          ANY(z, name, where);
 }  }
 #endif /* IPXERRORMSGS */  #endif /* IPXERRORMSGS */

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11