Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Oct 1998 04:18:07 -0500 (CDT)
From:      Joe Greco <jgreco@solaria.sol.net>
To:        hackers@FreeBSD.ORG
Subject:   A "feature request", maybe...?
Message-ID:  <199810050918.EAA17906@aurora.sol.net>

next in thread | raw e-mail | index | archive | help
I was wondering if anyone else thought this is an interesting idea.

I'd like, in some instances, to be able to avoid the default UNIX IP
behaviour of grabbing the "closest interface" address when connecting
to a remote host with TCP (or UDP for that matter).  There are some
times when I know a better address to use, but would rather not have
to modify lots and lots of userland code to specifically do a bind()
of the socket to the particular address that I'd really like to use.
The source isn't always available.  :-(

How hard would it be to add a sysctl that "changed" any normally-
INADDR_ANY socket to instead to bind to some specified IP address?

I can see some potential uses on things like firewalls, too...

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/342-4847

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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