mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David Schwartz" <davids@webmaster.com>
To: "Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: RE: UDP question.
Date: Fri, 15 Sep 2006 15:23:34 -0700	[thread overview]
Message-ID: <MDEHLPKNGKAHNMBLJOLKGECFOHAB.davids@webmaster.com> (raw)
In-Reply-To: <a885b78b0609150007u239cf363l40dd122165f7b516@mail.gmail.com>


> 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



  parent reply	other threads:[~2006-09-15 22:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14 16:00 xixi lii
2006-09-14 23:32 ` Sven-Haegar Koch
2006-09-15  6:36   ` Jan Engelhardt
2006-09-15  7:07     ` xixi lii
2006-09-15 19:14       ` Phillip Susi
2006-09-15 22:23       ` David Schwartz [this message]
2006-09-16  0:02         ` xixi lii
2006-09-16  0:33           ` David Schwartz
2006-09-16 12:13             ` xixi lii
2006-09-16  7:59           ` Holy Aavu
2006-09-16 12:19             ` xixi lii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MDEHLPKNGKAHNMBLJOLKGECFOHAB.davids@webmaster.com \
    --to=davids@webmaster.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome