Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!epg From: epg@cwi.nl (Ed Gronke) Newsgroups: comp.bugs.4bsd Subject: Bug in netname routine in ucb/netstat/route.c Message-ID: <21@piring.cwi.nl> Date: Thu, 30-Jul-87 06:55:45 EDT Article-I.D.: piring.21 Posted: Thu Jul 30 06:55:45 1987 Date-Received: Sat, 1-Aug-87 08:01:58 EDT Organization: CWI, Amsterdam Lines: 15 Keywords: netstat, /etc/networks Description: If the netname routine is passed a mask of 0 then it checks an unitialized register to see which mask to use. Repeat-By: netstat -r couldn't find network 127 (loopback-net) though it was in /etc/networks, though netstat -i did. Fix: Set the register. ------- route.c ------- 214c214 < in.s_addr = ntohl(in.s_addr); --- > i = in.s_addr = ntohl(in.s_addr);