public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* an IP stack problem regarding routing and ARP
@ 2001-09-23 21:56 Pei Zheng
  2001-09-23 21:59 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Pei Zheng @ 2001-09-23 21:56 UTC (permalink / raw)
  To: linux-kernel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: an IP stack problem regarding routing and ARP
  2001-09-23 21:56 an IP stack problem regarding routing and ARP Pei Zheng
@ 2001-09-23 21:59 ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-09-23 21:59 UTC (permalink / raw)
  To: Pei Zheng; +Cc: linux-kernel

Em Sun, Sep 23, 2001 at 05:56:14PM -0400, Pei Zheng escreveu:

> 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.

look at snull in Rubini's ldd2, available as FDL (iirc) at www.oreilly.com

- Arnaldo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-23 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-23 21:56 an IP stack problem regarding routing and ARP Pei Zheng
2001-09-23 21:59 ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox