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

Diff for /src/usr.bin/netstat/Attic/atalk.c between version 1.12 and 1.13

version 1.12, 2004/03/13 22:02:13 version 1.13, 2005/03/25 17:01:03
Line 251 
Line 251 
   
         if (off == 0)          if (off == 0)
                 return;                  return;
         if (kread(off, (char *) &initial, sizeof(struct ddpcb *)) < 0)          if (kread(off, &initial, sizeof(struct ddpcb *)) < 0)
                 return;                  return;
         ddpcb = cb;          ddpcb = cb;
         prev = (struct ddpcb *) off;          prev = (struct ddpcb *) off;
         for (next = initial; next != NULL; prev = next) {          for (next = initial; next != NULL; prev = next) {
                 u_long  ppcb = (u_long) next;                  u_long  ppcb = (u_long) next;
   
                 if (kread((u_long) next, (char *) &ddpcb, sizeof(ddpcb)) < 0)                  if (kread((u_long) next, &ddpcb, sizeof(ddpcb)) < 0)
                         return;                          return;
                 next = ddpcb.ddp_next;                  next = ddpcb.ddp_next;
 #if 0  #if 0
Line 266 
Line 266 
                         continue;                          continue;
                 }                  }
 #endif  #endif
                 if (kread((u_long) ddpcb.ddp_socket,                  if (kread((u_long) ddpcb.ddp_socket, &sockb,
                     (char *) &sockb, sizeof(sockb)) < 0)                      sizeof(sockb)) < 0)
                         return;                          return;
                 if (first) {                  if (first) {
                         printf("Active ATALK connections");                          printf("Active ATALK connections");
Line 312 
Line 312 
   
         if (off == 0)          if (off == 0)
                 return;                  return;
         if (kread(off, (char *) &ddpstat, sizeof(ddpstat)) < 0)          if (kread(off, &ddpstat, sizeof(ddpstat)) < 0)
                 return;                  return;
         printf("%s:\n", name);          printf("%s:\n", name);
         p(ddps_short, "\t%ld packet%s with short headers\n");          p(ddps_short, "\t%ld packet%s with short headers\n");

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13