version 1.31, 2004/11/17 01:47:20 |
version 1.32, 2005/03/25 17:01:03 |
|
|
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) \ |
|
|
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; |
} |
} |
|
|
|
|
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) \ |
|
|
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; |
} |
} |
|
|
|
|
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) \ |
|
|
|
|
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) \ |
|
|
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); |
|
|