Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 1996 15:42:21 -0800 (PST)
From:      Peter Wemm <peter>
To:        CVS-committers, cvs-usrbin
Subject:   cvs commit: src/usr.bin/netstat main.c route.c
Message-ID:  <199601142342.PAA01261@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601142342.PAA01261>