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

Mark Frazer (mark@somanetworks.com)
Fri, 6 Dec 2002 10:27:40 -0500


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/