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

Diff for /src/usr.bin/netstat/inet6.c between version 1.31 and 1.32

version 1.31, 2004/11/17 01:47:20 version 1.32, 2005/03/25 17:01:03
Line 352 
Line 352 
         if (off == 0)          if (off == 0)
                 return;                  return;
   
         kread(off, (char *)&ip6stat, sizeof (ip6stat));          kread(off, &ip6stat, sizeof (ip6stat));
         printf("%s:\n", name);          printf("%s:\n", name);
   
 #define p(f, m) if (ip6stat.f || sflag <= 1) \  #define p(f, m) if (ip6stat.f || sflag <= 1) \
Line 523 
Line 523 
         strlcpy(ifr.ifr_name, ifname, sizeof ifr.ifr_name);          strlcpy(ifr.ifr_name, ifname, sizeof ifr.ifr_name);
         printf("ip6 on %s:\n", ifr.ifr_name);          printf("ip6 on %s:\n", ifr.ifr_name);
   
         if (ioctl(s, SIOCGIFSTAT_IN6, (char *)&ifr) < 0) {          if (ioctl(s, SIOCGIFSTAT_IN6, &ifr) < 0) {
                 perror("Warning: ioctl(SIOCGIFSTAT_IN6)");                  perror("Warning: ioctl(SIOCGIFSTAT_IN6)");
                 goto end;                  goto end;
         }          }
Line 828 
Line 828 
   
         if (off == 0)          if (off == 0)
                 return;                  return;
         kread(off, (char *)&icmp6stat, sizeof (icmp6stat));          kread(off, &icmp6stat, sizeof (icmp6stat));
         printf("%s:\n", name);          printf("%s:\n", name);
   
 #define p(f, m) if (icmp6stat.f || sflag <= 1) \  #define p(f, m) if (icmp6stat.f || sflag <= 1) \
Line 912 
Line 912 
         strlcpy(ifr.ifr_name, ifname, sizeof ifr.ifr_name);          strlcpy(ifr.ifr_name, ifname, sizeof ifr.ifr_name);
         printf("icmp6 on %s:\n", ifr.ifr_name);          printf("icmp6 on %s:\n", ifr.ifr_name);
   
         if (ioctl(s, SIOCGIFSTAT_ICMP6, (char *)&ifr) < 0) {          if (ioctl(s, SIOCGIFSTAT_ICMP6, &ifr) < 0) {
                 perror("Warning: ioctl(SIOCGIFSTAT_ICMP6)");                  perror("Warning: ioctl(SIOCGIFSTAT_ICMP6)");
                 goto end;                  goto end;
         }          }
Line 968 
Line 968 
   
         if (off == 0)          if (off == 0)
                 return;                  return;
         kread(off, (char *)&pim6stat, sizeof(pim6stat));          kread(off, &pim6stat, sizeof(pim6stat));
         printf("%s:\n", name);          printf("%s:\n", name);
   
 #define p(f, m) if (pim6stat.f || sflag <= 1) \  #define p(f, m) if (pim6stat.f || sflag <= 1) \
Line 995 
Line 995 
   
         if (off == 0)          if (off == 0)
                 return;                  return;
         kread(off, (char *)&rip6stat, sizeof(rip6stat));          kread(off, &rip6stat, sizeof(rip6stat));
         printf("%s:\n", name);          printf("%s:\n", name);
   
 #define p(f, m) if (rip6stat.f || sflag <= 1) \  #define p(f, m) if (rip6stat.f || sflag <= 1) \
Line 1136 
Line 1136 
         struct tcp6cb tcp6cb;          struct tcp6cb tcp6cb;
         int i;          int i;
   
         kread(pcbaddr, (char *)&tcp6cb, sizeof(tcp6cb));          kread(pcbaddr, &tcp6cb, sizeof(tcp6cb));
   
         printf("TCP Protocol Control Block at 0x%08lx:\n\n", pcbaddr);          printf("TCP Protocol Control Block at 0x%08lx:\n\n", pcbaddr);
   

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32