[4200] in linux-net channel archive
Re: Ident and virtual interfaces
daemon@ATHENA.MIT.EDU (Alan Cox)
Tue Aug 27 14:18:14 1996
From: Alan Cox <alan@cymru.net>
To: paul@xtdnet.nl (Paul Wouters)
Date: Tue, 27 Aug 1996 18:11:40 +0100 (BST)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.93.960827183924.11893A-100000@bean.xtdnet.nl> from "Paul Wouters" at Aug 27, 96 06:44:03 pm
> about. However, if I want to know information about a connection to my
> virtual interface, I am stuck. Since my outgoing ident request uses the
You can use getpeername and getsockname to get both ends of a non UDP
connection and query.
> physicial ethernet's IP number it differs from the connection I am asking
> informaiton about (the virtual interface's IP number).
Make the tcp wrapper bind to the local network address of the socket you want
to query then connect() to make a query. I think its already done right in
the ident/wrapper code.