new router

From: Tulika Pradhan (tulikapradhan@hotmail.com)
Date: Tue Apr 23 2002 - 05:24:15 EST


hi !

i need to implement a router for my PC running linux. i need to take frame
relay packets from the frame relay device and route it to another device.
all the processing would be done by the already existing generic hdlc layer.
one way to do this would be to write a socket application and read and write
the packets from one socket to the other. however, this would make the
system very slow. i want to add a routing functionality as part of the
kernel to increase the throughput. i think the following can be done.

- make a new family for sockets (say, AF_MYROUTER) and make a socket
interface for this. - using ioctl calls for SIOCADDRT and SIOCDELRT, routing
table entries can be made and deleted.
- also have my own protocol (say, ETH_P_MYPROTOCOL) and initiaize
skb->protocol to this value in the generic hdlc code (instead of looking
inside the frame relay packet and setting the protocol to ip etc.)

is it reasonable to add a new family for the above routing functionality ?

ps. please mark me a copy when you reply as i am not on the linux-kernel
mailing list.

regards,

tulika

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 23 2002 - 22:00:34 EST