Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 1996 16:23:17 +0200
From:      Poul-Henning Kamp <phk@critter.tfs.com>
To:        Dave Cornejo <dave@dogwood.com>
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 
Message-ID:  <3457.840810197@critter.tfs.com>
In-Reply-To: Your message of "Fri, 23 Aug 1996 07:02:50 PDT." <199608231402.HAA13108@white.dogwood.com> 

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



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