Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!necntc!necis!encore!loverso From: loverso@encore.UUCP Newsgroups: comp.bugs.4bsd Subject: 4.3 netstat doesn't display some ICMP stats Message-ID: <1884@encore.UUCP> Date: Tue, 1-Sep-87 17:16:29 EDT Article-I.D.: encore.1884 Posted: Tue Sep 1 17:16:29 1987 Date-Received: Thu, 3-Sep-87 01:35:23 EDT Organization: Encore Computer Corp., Marlboro, MA Lines: 32 Keywords: 4.3 netstat ICMP 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