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

Diff for /src/usr.bin/netstat/Attic/iso.c between version 1.7 and 1.8

version 1.7, 1998/02/27 12:07:36 version 1.8, 2001/11/19 19:02:15
Line 225 
Line 225 
         char *name;          char *name;
 {  {
         struct isopcb cb;          struct isopcb cb;
         register struct isopcb *prev, *next;          struct isopcb *prev, *next;
   
         if (off == 0) {          if (off == 0) {
                 printf("%s control block: symbol not in namelist\n", name);                  printf("%s control block: symbol not in namelist\n", name);
Line 381 
Line 381 
 #ifdef notdef  #ifdef notdef
 char *  char *
 isonetname(iso)  isonetname(iso)
         register 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;
Line 413 
Line 413 
   
 static void  static void
 isonetprint(iso, sufx, sufxlen, islocal)  isonetprint(iso, sufx, sufxlen, islocal)
         register struct iso_addr *iso;          struct iso_addr *iso;
         char *sufx;          char *sufx;
         u_short sufxlen;          u_short sufxlen;
         int islocal;          int islocal;
Line 483 
Line 483 
                 "ACKWAIT",                  "ACKWAIT",
                 "OPEN",                  "OPEN",
         };          };
         register struct isopcb *prev, *next;          struct isopcb *prev, *next;
         struct x25_pcb xpcb;          struct x25_pcb xpcb;
   
         if (off == 0) {          if (off == 0) {
Line 561 
Line 561 
   
 static void  static void
 tprintstat(s, indent)  tprintstat(s, indent)
         register struct tp_stat *s;          struct tp_stat *s;
         int indent;          int indent;
 {  {
         fprintf(OUT,          fprintf(OUT,
Line 641 
Line 641 
         fprintf(OUT,          fprintf(OUT,
                 "\t%*sM:L ( M mbuf chains of length L)\n", indent, " ");                  "\t%*sM:L ( M mbuf chains of length L)\n", indent, " ");
         {          {
                 register int j;                  int j;
   
                 fprintf(OUT, "\t%*s%ld: over 16\n", indent, " ",                  fprintf(OUT, "\t%*s%ld: over 16\n", indent, " ",
                 s->ts_mb_len_distr[0]);                  s->ts_mb_len_distr[0]);
Line 682 
Line 682 
                 "\t%*s%ld tp 0 connection%s\n",  indent, " ",                  "\t%*s%ld tp 0 connection%s\n",  indent, " ",
                 s->ts_tp0_conn ,plural(s->ts_tp0_conn));                  s->ts_tp0_conn ,plural(s->ts_tp0_conn));
     {      {
                 register int j;                  int j;
                 static char *name[]= {                  static char *name[]= {
                         "~LOCAL, PDN",                          "~LOCAL, PDN",
                         "~LOCAL,~PDN",                          "~LOCAL,~PDN",
Line 813 
Line 813 
   
 static void  static void
 isonetprint(siso, islocal)  isonetprint(siso, islocal)
         register struct sockaddr_iso *siso;          struct sockaddr_iso *siso;
         int islocal;          int islocal;
 {  {
         hexprint(siso->siso_nlen, siso->siso_addr.isoa_genaddr, "{}");          hexprint(siso->siso_nlen, siso->siso_addr.isoa_genaddr, "{}");
Line 833 
Line 833 
         int n;          int n;
         char *buf, *delim;          char *buf, *delim;
 {  {
         register u_char *in = (u_char *)buf, *top = in + n;          u_char *in = (u_char *)buf, *top = in + n;
         register char *out = obuf;          char *out = obuf;
         register int i;          int i;
   
         if (n == 0)          if (n == 0)
                 return;                  return;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8