From owner-cvs-etc Fri Aug 23 07:23:52 1996 Return-Path: owner-cvs-etc Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA25439 for cvs-etc-outgoing; Fri, 23 Aug 1996 07:23:52 -0700 (PDT) Received: from critter.tfs.com ([140.145.230.252]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA25417; Fri, 23 Aug 1996 07:23:46 -0700 (PDT) Received: from critter.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.7.5/8.7.3) with ESMTP id QAA03459; Fri, 23 Aug 1996 16:23:18 +0200 (MET DST) To: Dave Cornejo cc: rgrimes@gndrsh.aac.dev.com, joerg_wunsch@uriah.heep.sax.de, asami@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-etc@freefall.freebsd.org Subject: Re: cvs commit: src/etc services In-reply-to: Your message of "Fri, 23 Aug 1996 07:02:50 PDT." <199608231402.HAA13108@white.dogwood.com> Date: Fri, 23 Aug 1996 16:23:17 +0200 Message-ID: <3457.840810197@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-cvs-etc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199608231402.HAA13108@white.dogwood.com>, Dave Cornejo writes: >Poul-Henning Kamp wrote: >> Wrong solution. >> >> Each socket should have a flag that tells if it was bound to a specific >> address/port or defaulted to something the kernel gave it. >> >> That way netstat would know not to do a service resolution on the sockets >> that are anonymous. >> >> Should be an easy thing to do :-) > >I just woke up, so excuse me if I'm having brain problems :-), but... > >That works for the local address, how do you cope with remote ones? One of two ways: 1. Record if we did a connect or an accept on the socket, if we did an accept, assume the other end is anonymous. 2. Simply do the opposite of what you did to the local address. Still not hard :-) -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.