netdev
[Top] [All Lists]

Re: forwarding packets

To: rabeeh@xxxxxxxxxxxxx
Subject: Re: forwarding packets
From: mcr@xxxxxxxxxxx
Date: Tue, 19 Sep 2000 09:43:54 -0600
Cc: netdev <netdev@xxxxxxxxxxx>
In-reply-to: Your message of "Tue, 19 Sep 2000 14:14:37 EDT." <39C7AD0D.84CEDBD9@galileo.co.il>
Sender: owner-netdev@xxxxxxxxxxx
-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "Rabeeh" == Rabeeh Khoury <rabeeh@xxxxxxxxxxxxx> writes:
    Rabeeh> I am working on a Galileo Technology evaluation board. I'm
    Rabeeh> writing ethernet driver for our embedded systems and I have to
    Rabeeh> ethernet ports. 

  You mean you are porting Linux to this board? Is this a PCI board on
a passive backplane, or do you have it in a slot in a Linux machine?

    Rabeeh> I need to ask if there is a way for implementing the following 
scenario
    Rabeeh> for the ethernet drivers to be activated as two ethernet ports 
router :

    Rabeeh> 1.. The ethernet driver receives a packet
    Rabeeh> 2.. The ethernet driver checks if the packet should be forwarded to
    Rabeeh> another interface. The checking is done by query to the kernel 
routing
    Rabeeh> table.
    Rabeeh> 3.. If the packet should be forwarded, the ethernet driver queues 
the
    Rabeeh> packet to the destination interface with slight changes (source and
    Rabeeh> destination MAC addresses).

    Rabeeh> If this scenario possible, please send me the functions that I 
should
    Rabeeh> use. (dev_queue_xmit for queing a packet to another interface ??!!)

  I don't know if this is "legal", and I understand that this will starve
user processes of CPU. 

  I've been success setting skb->dev to the device I want and calling
dev_queue_xmit() from my interrupt service routine. The routing/filtering is
done by our hardware, and results in an index in to a table of devices.

] Train travel features AC outlets with no take-off restrictions|gigabit is no[
]   Michael Richardson, Solidum Systems/while this plane is 45  |problem  with[
]     mcr@xxxxxxxxxxx   www.solidum.com\minutes late and cramped|PAX.port 1100[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [
  


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Processed by Mailcrypt 3.5.5, an Emacs/PGP interface

iQB1AwUBOceJuI5hrHmwwFrtAQEGtQL/c5z0DnfJ6JXBXDLugKxTDLPwqD4ItaoR
iXMGHecovUbfv4sTAld0rsZyos5NTfYI5t405+shHmWZtZeR+mw2hDIFVBpQ8zHM
n7001IRD6esDohZS+fXrLi0DmaPaPgWM
=lj9F
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>