From owner-freebsd-hackers Mon Oct 5 07:31:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA14155 for freebsd-hackers-outgoing; Mon, 5 Oct 1998 07:31:44 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from roma.coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA14142 for ; Mon, 5 Oct 1998 07:31:38 -0700 (PDT) (envelope-from jonny@jonny.eng.br) Received: (from jonny@localhost) by roma.coe.ufrj.br (8.8.8/8.8.8) id LAA22049; Mon, 5 Oct 1998 11:29:56 -0300 (EST) (envelope-from jonny) From: Joao Carlos Mendes Luis Message-Id: <199810051429.LAA22049@roma.coe.ufrj.br> Subject: Re: A "feature request", maybe...? In-Reply-To: <199810050918.EAA17906@aurora.sol.net> from Joe Greco at "Oct 5, 98 04:18:07 am" To: jgreco@solaria.sol.net (Joe Greco) Date: Mon, 5 Oct 1998 11:29:56 -0300 (EST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG #define quoting(Joe Greco) // 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? Yes, yes, yes !!! // I can see some potential uses on things like firewalls, too... And machines acting both as router and server, in which you'd like to always use the internal IP address. Jonny -- Joao Carlos Mendes Luis M.Sc. Student jonny@jonny.eng.br Universidade Federal do Rio de Janeiro "This .sig is not meant to be politically correct." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message