[952] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: telnet/ftp/rlogin/rsh not working between Linux machines. (fwd)

daemon@ATHENA.MIT.EDU (Mike Shaver)
Tue Aug 22 00:07:31 1995

From: Mike Shaver <shaver@neon.ingenia.com>
To: almesber@lrc.epfl.ch (Werner Almesberger)
Date: Mon, 21 Aug 1995 07:13:52 -0400 (EDT)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <199508202106.XAA05305@lrc.epfl.ch> from "Werner Almesberger" at Aug 20, 95 11:06:54 pm

Werner Almesberger mumbled something vague about:
> Arnt Gulbrandsen <agulbra@troll.no> wrote:
> > But it can never reject the connection - by the time it's started the
> > connection has been established.  inetd could, I think, if there's any
> > way to getpeername() before one accepts the connection.
> 
> Hmm, besides the TCP timing issues, I could imagine how you would apply
> getpeername (a listening socket has no peer, so that would be
> unambiguous), however I have difficulties imagining how you'd reject the
> call - you don't want to close the socket and anything else (shutdown,
> setsockopt, ioctl, etc.) looks like requiring a big #ifdef linux ...

TLI supports a stage between the listen()-equivalent and the accepting
of a connection, so I guess we could just wait for the LiS project to
finish. =)

Or you could add a hear() system call that would return a struct
something *, which could be checked for stuff like source and
destination address and port before calling accept()...

Mike

-- 
#> Mike Shaver (shaver@ingenia.com)                                   <#
#> Technical specialist, pedant, packetsmith                          <#
#>                                 Ingenia Communications Corporation <#
#>               Research, Development, Support and Sleep Deprivation <#
#>                    Packets crafted, bugs found, rebellions quelled <#

home help back first fref pref prev next nref lref last post