Date: Sat, 8 Sep 2001 23:30:15 -0500 From: Alfred Perlstein <bright@mu.org> To: "E.B. Dreger" <eddy+public+spam@noc.everquick.net> Cc: hackers@freebsd.org, net@freebsd.org Subject: Re: outbound SOCK_STREAM - force source addr? Message-ID: <20010908233014.J2965@elvis.mu.org> In-Reply-To: <Pine.LNX.4.20.0109090353010.3787-100000@www.everquick.net>; from eddy%2Bpublic%2Bspam@noc.everquick.net on Sun, Sep 09, 2001 at 04:04:06AM %2B0000 References: <Pine.LNX.4.20.0109090353010.3787-100000@www.everquick.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* E.B. Dreger <eddy+public+spam@noc.everquick.net> [010908 23:04] wrote: > Greetings all, > > Any way to force the source address for an outbound SOCK_STREAM? I > know that one can do it for SOCK_DGRAM... but I've found no way to > do so for, say, a TCP connection. It's not immediatly obvious, but you can bind(2) a socket before calling connect(2) in order to do this. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' 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?20010908233014.J2965>