loverso@encore.UUCP (09/02/87)
Index: ucb/netstat 4.3BSD Fix
Description:
"netstat -s" doesn't list counts of ICMP address mask requests
and address mask replies sent/recieved. Its simply a matter
of comparing against the wrong upper boundary.
Repeat-By:
port the code to an Annex terminal server.
Fix:
Apply this diff:
*** inet.c_orig Tue Sep 1 17:02:05 1987
--- inet.c Tue Sep 1 17:02:04 1987
***************
*** 249,253 ****
printf("\t%d error%s not generated 'cuz old message was icmp\n",
icmpstat.icps_oldicmp, plural(icmpstat.icps_oldicmp));
! for (first = 1, i = 0; i < ICMP_IREQREPLY + 1; i++)
if (icmpstat.icps_outhist[i] != 0) {
if (first) {
--- 249,253 ----
printf("\t%d error%s not generated 'cuz old message was icmp\n",
icmpstat.icps_oldicmp, plural(icmpstat.icps_oldicmp));
! for (first = 1, i = 0; i < ICMP_MAXTYPE + 1; i++)
if (icmpstat.icps_outhist[i] != 0) {
if (first) {
--
John Robert LoVerso, Encore Computer Corp
encore!loverso, loverso@multimax.arpa