From owner-cvs-usrbin Sun Jan 14 15:42:24 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA01270 for cvs-usrbin-outgoing; Sun, 14 Jan 1996 15:42:24 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA01261 Sun, 14 Jan 1996 15:42:21 -0800 (PST) Date: Sun, 14 Jan 1996 15:42:21 -0800 (PST) From: Peter Wemm Message-Id: <199601142342.PAA01261@freefall.freebsd.org> To: CVS-committers, cvs-usrbin Subject: cvs commit: src/usr.bin/netstat main.c route.c Sender: owner-cvs-usrbin@FreeBSD.ORG Precedence: bulk peter 96/01/14 15:42:20 Modified: usr.bin/netstat main.c route.c Log: A couple of changes of mine that I've been using for a while: route.c: look up the netname as-is first before the shifted name. this makes a big speed difference, as the lookups are generally local DNS. The shifted names can be very wrong (there is still guessing and fudging involved) and usually go remote, taking a long time to fail. If you have the RFC reccomended netnames in your reverse lookups, this is even faster still. main.c: dont do a sethostent(1) - this is causing the resolver to use a VC (tcp) connection to the resolver, which has more overheads and is slower than the default UDP case. This once made sense when everything was based on text host tables. Revision Changes Path 1.10 +8 -0 src/usr.bin/netstat/main.c 1.10 +3 -3 src/usr.bin/netstat/route.c