version 1.3, 2002/01/17 21:34:58 |
version 1.4, 2002/05/27 01:50:36 |
|
|
banner_printed = 0; |
banner_printed = 0; |
for (i = 0; i < MF6CTBLSIZ; ++i) { |
for (i = 0; i < MF6CTBLSIZ; ++i) { |
mfcp = mf6ctable[i]; |
mfcp = mf6ctable[i]; |
while(mfcp) { |
while (mfcp) { |
kread((u_long)mfcp, (char *)&mfc, sizeof(mfc)); |
kread((u_long)mfcp, (char *)&mfc, sizeof(mfc)); |
if (!banner_printed) { |
if (!banner_printed) { |
printf ("\nIPv6 Multicast Forwarding Cache\n"); |
printf ("\nIPv6 Multicast Forwarding Cache\n"); |
|
|
u_int mrtproto; |
u_int mrtproto; |
struct mrt6stat mrtstat; |
struct mrt6stat mrtstat; |
|
|
if(mrpaddr == 0) { |
if (mrpaddr == 0) { |
printf("mrt6_stats: symbol not in namelist\n"); |
printf("mrt6_stats: symbol not in namelist\n"); |
return; |
return; |
} |
} |
|
|
kread(mrpaddr, (char *)&mrtproto, sizeof(mrtproto)); |
kread(mrpaddr, (char *)&mrtproto, sizeof(mrtproto)); |
switch (mrtproto) { |
switch (mrtproto) { |
case 0: |
case 0: |
printf("no IPv6 multicast routing compiled into this system\n"); |
printf("no IPv6 multicast routing compiled into this system\n"); |
return; |
return; |
|
|
case IPPROTO_PIM: |
case IPPROTO_PIM: |
break; |
break; |
|
|
default: |
default: |
printf("IPv6 multicast routing protocol %u, unknown\n", |
printf("IPv6 multicast routing protocol %u, unknown\n", |
mrtproto); |
mrtproto); |
return; |
return; |