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

Diff for /src/usr.bin/netstat/mroute6.c between version 1.3 and 1.4

version 1.3, 2002/01/17 21:34:58 version 1.4, 2002/05/27 01:50:36
Line 172 
Line 172 
         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");
Line 223 
Line 223 
         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;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4