Hi,

I am trying to program a linux box
to act as a swithing node. It has
three interfaces (eth0, eth1, eth2).
Any IP packets coming over eth1 or eth2
are to be forwarded to eth0.

Any IP packets coming over eth0 will be
forwarded to either eht1 or eth2 or
both (like multicasting). The
choice will be made through some user
configurable parameters. 

I am trying to write a program to perform
this swithcing function. The program needs
to capture all the packets coming over
the three interfaces, decide which link
to forward them, and finally forward them
to the appropriate link.

Could anyone tell me how to capture all the
packets on all 3 interfaces and how to
forward a packet to a specific interface.

I know raw socket can be used to listen to
all ethernet frames. Does it include all
the frames from all the interfaces ?
And ofcourse how to send a packet to a
specific interface.

I would appreciate any help.

thanks in advance.
-- Areef. 
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to