* E.B. Dreger <[EMAIL PROTECTED]> [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 [[EMAIL PROTECTED]]
'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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to