RE: UDP question.
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: Fri, 15 Sep 2006 15:23:34 -0700
My two adapters has two different IP address, and I bind one IP
on one socket,
do you mean that I alloc two socket and bind different IP is not
helpful?
Correct. You are still sending all the packets *to* the same place.
In fact, all the packet sent from two socket is go out by one
network adapter?
Yes, of course. Why would the kernel send traffic to a destination out an
interface that doesn't go to that destination?
Suppose you have two interfaces, 1.2.3.4/8 and 10.2.3.4/8, if you are
sending a packet *to* 1.2.4.5, it will go out the first interface. This
applies whether the source address is 1.2.3.4 or 10.2.3.4.
By default, the kernel routes traffic based on where it is going, not which
interface address it came from.
DS
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: UDP question.
- From: xixi lii
- Re: UDP question.
- References:
- Re: UDP question.
- From: xixi lii
- Re: UDP question.
- Prev by Date: Re: [PATCH 0/11] LTTng-core (basic tracing infrastructure) 0.5.108
- Next by Date: Re: [PATCH 0/11] LTTng-core (basic tracing infrastructure) 0.5.108
- Previous by thread: Re: UDP question.
- Next by thread: Re: UDP question.
- Index(es):
Relevant Pages
|