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

Diff for /src/usr.bin/netstat/inet.c between version 1.67 and 1.68

version 1.67, 2003/09/04 03:20:17 version 1.68, 2003/09/04 20:05:19
Line 415 
Line 415 
 #undef p1  #undef p1
 }  }
   
 static  char *icmpnames[] = {  static  char *icmpnames[ICMP_MAXTYPE + 1] = {
         "echo reply",          "echo reply",
         "#1",          "#1",
         "#2",          "#2",
Line 435 
Line 435 
         "information request reply",          "information request reply",
         "address mask request",          "address mask request",
         "address mask reply",          "address mask reply",
           "#19",
           "#20",
           "#21",
           "#22",
           "#23",
           "#24",
           "#25",
           "#26",
           "#27",
           "#28",
           "#29",
           "traceroute",
           "data conversion error",
           "mobile host redirect",
           "IPv6 where-are-you",
           "IPv6 i-am-here",
           "mobile registration request",
           "mobile registration reply",
           "#37",
           "#38",
           "SKIP",
           "Photuris",
 };  };
   
 /*  /*
Line 463 
Line 485 
                                 printf("\tOutput packet histogram:\n");                                  printf("\tOutput packet histogram:\n");
                                 first = 0;                                  first = 0;
                         }                          }
                         printf("\t\t%s: %lu\n", icmpnames[i],                          if (icmpnames[i])
                             icmpstat.icps_outhist[i]);                                  printf("\t\t%s:", icmpnames[i]);
                           else
                                   printf("\t\t#%d:", i);
                           printf(" %lu\n", icmpstat.icps_outhist[i]);
                 }                  }
         p(icps_badcode, "\t%lu message%s with bad code fields\n");          p(icps_badcode, "\t%lu message%s with bad code fields\n");
         p(icps_tooshort, "\t%lu message%s < minimum length\n");          p(icps_tooshort, "\t%lu message%s < minimum length\n");
Line 476 
Line 501 
                                 printf("\tInput packet histogram:\n");                                  printf("\tInput packet histogram:\n");
                                 first = 0;                                  first = 0;
                         }                          }
                         printf("\t\t%s: %lu\n", icmpnames[i],                          if (icmpnames[i])
                             icmpstat.icps_inhist[i]);                                  printf("\t\t%s:", icmpnames[i]);
                           else
                                   printf("\t\t#%d:", i);
                           printf(" %lu\n", icmpstat.icps_inhist[i]);
                 }                  }
         p(icps_reflect, "\t%lu message response%s generated\n");          p(icps_reflect, "\t%lu message response%s generated\n");
 #undef p  #undef p

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68