From owner-cvs-usrbin Sun Jan 14 15:20:36 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA00125 for cvs-usrbin-outgoing; Sun, 14 Jan 1996 15:20:36 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA00116 Sun, 14 Jan 1996 15:20:34 -0800 (PST) Date: Sun, 14 Jan 1996 15:20:34 -0800 (PST) From: Peter Wemm Message-Id: <199601142320.PAA00116@freefall.freebsd.org> To: CVS-committers, cvs-usrbin Subject: cvs commit: src/usr.bin/netstat - Imported sources Sender: owner-cvs-usrbin@FreeBSD.ORG Precedence: bulk peter 96/01/14 15:20:33 Branch: usr.bin/netstat 1.1.1 Log: Import netstat from 4.4Lite-2 - this version eliminates some of the severely bogus mask guessing in the netname code, and also reports the mask length of the route (like linux's netstat, but in a much more compact form) The current code is doing bogus things like shifting c-class subnets by 4 bits and looking them up, causing a DNS lookup of 0x0C0CBxxx which takes an eternity to fail. Status: Vendor Tag: CSRG Release Tags: bsd_44_lite_2 C src/usr.bin/netstat/route.c U src/usr.bin/netstat/ns.c U src/usr.bin/netstat/netstat.h U src/usr.bin/netstat/netstat.1 C src/usr.bin/netstat/mroute.c U src/usr.bin/netstat/mbuf.c U src/usr.bin/netstat/Makefile U src/usr.bin/netstat/main.c U src/usr.bin/netstat/iso.c C src/usr.bin/netstat/inet.c C src/usr.bin/netstat/if.c U src/usr.bin/netstat/unix.c 4 conflicts created by this import. Use the following command to help the merge: cvs checkout -jCSRG:yesterday -jCSRG src/usr.bin/netstat From owner-cvs-usrbin Sun Jan 14 15:33:18 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA00782 for cvs-usrbin-outgoing; Sun, 14 Jan 1996 15:33:18 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA00775 Sun, 14 Jan 1996 15:33:15 -0800 (PST) Date: Sun, 14 Jan 1996 15:33:15 -0800 (PST) From: Peter Wemm Message-Id: <199601142333.PAA00775@freefall.freebsd.org> To: CVS-committers, cvs-usrbin Subject: cvs commit: src/usr.bin/netstat if.c inet.c mroute.c route.c Sender: owner-cvs-usrbin@FreeBSD.ORG Precedence: bulk peter 96/01/14 15:33:15 Modified: usr.bin/netstat if.c inet.c mroute.c route.c Log: Merge in Lite-2 changes. Revision Changes Path 1.8 +2 -2 src/usr.bin/netstat/if.c 1.14 +3 -2 src/usr.bin/netstat/inet.c 1.4 +1 -1 src/usr.bin/netstat/mroute.c 1.9 +100 -26 src/usr.bin/netstat/route.c 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 From owner-cvs-usrbin Sun Jan 14 18:18:40 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA08808 for cvs-usrbin-outgoing; Sun, 14 Jan 1996 18:18:40 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA08798 Sun, 14 Jan 1996 18:18:38 -0800 (PST) Date: Sun, 14 Jan 1996 18:18:38 -0800 (PST) From: Peter Wemm Message-Id: <199601150218.SAA08798@freefall.freebsd.org> To: CVS-committers, cvs-usrbin Subject: cvs commit: src/usr.bin/netstat inet.c main.c netstat.h route.c Sender: owner-cvs-usrbin@FreeBSD.ORG Precedence: bulk peter 96/01/14 18:18:37 Modified: usr.bin/netstat inet.c main.c netstat.h route.c Log: tidy up the domain name trimming code, and move it to a single place rather than having the same bit of code duplicated in three places, each with their own static copy of the host's local name. Revision Changes Path 1.15 +1 -13 src/usr.bin/netstat/inet.c 1.11 +30 -0 src/usr.bin/netstat/main.c 1.4 +3 -1 src/usr.bin/netstat/netstat.h 1.11 +5 -15 src/usr.bin/netstat/route.c From owner-cvs-usrbin Mon Jan 15 18:09:34 1996 Return-Path: owner-cvs-usrbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA01397 for cvs-usrbin-outgoing; Mon, 15 Jan 1996 18:09:34 -0800 (PST) Received: (from jkh@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA01383 Mon, 15 Jan 1996 18:09:30 -0800 (PST) Date: Mon, 15 Jan 1996 18:09:30 -0800 (PST) From: "Jordan K. Hubbard" Message-Id: <199601160209.SAA01383@freefall.freebsd.org> To: CVS-committers, cvs-usrbin Subject: cvs commit: src/usr.bin/host host.c Sender: owner-cvs-usrbin@FreeBSD.ORG Precedence: bulk jkh 96/01/15 18:09:28 Modified: usr.bin/host host.c Log: Guard against argument starvation. Noted by: aagero@aage.aage.priv.no Revision Changes Path 1.7 +3 -3 src/usr.bin/host/host.c