mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Pei Zheng" <zhengpei@msu.edu>
To: <linux-kernel@vger.kernel.org>
Subject: an IP stack problem regarding routing and ARP
Date: Sun, 23 Sep 2001 17:56:14 -0400	[thread overview]
Message-ID: <LIECKFOKGFCHAPOBKPECEECGCLAA.zhengpei@msu.edu> (raw)

Hi, Sorry to bother you all.
My question is about the Linux kernel IP stack regarding routing
tables and ARP.
Basically I am considering a hack on the IP stack for the  purpose of
routing emulation(emulating 2 routers in one kernel):

If a Linux box has 2 NICs, I would like to generate some packets in the
kernel, sent them out from one NIC to an Ethernet switch, and then
receive them on the other NIC. Is it possible, with the help of appropriate
routing table, routing rules and ARP configuration? Or the kernel IP
stack must be modified? It seems to me that if the kernel figures
out that a packet's next hop is its local network interface, it will
deliver to that interface through IP stack directly.

Thanks!

-Pei Zheng



             reply	other threads:[~2001-09-23 21:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-23 21:56 Pei Zheng [this message]
2001-09-23 21:59 ` Arnaldo Carvalho de Melo

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=LIECKFOKGFCHAPOBKPECEECGCLAA.zhengpei@msu.edu \
    --to=zhengpei@msu.edu \
    --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

all inboxes | Powered by JetHome®