Re: [OT] ipv4: how to choose src ip?

From: Mark Frazer (mark@somanetworks.com)
Date: Fri Dec 06 2002 - 10:27:40 EST


Tomas Szepe <szepe@pinerecords.com> [02/12/05 14:08]:
>
> What I'm looking for is rather a way to
> initiate two connections to the same destination host using the two
> different source IP addresses.

I believe you can just bind(2) each socket to a different address
before connect(2).

-- 
Fry, of all the friends I've had ... you're the first. - Bender
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:26 EST