LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Routing implementation in the kernel (https://www.linuxquestions.org/questions/programming-9/routing-implementation-in-the-kernel-315820/)

sidra 04-21-2005 04:17 PM

Routing implementation in the kernel
 
Hi all,

I'm using kernel version 2.4.20-8. I'm running zebra daemon and my linux machine is acting like a router. I have a BGP network configured. Routes are updated in the Forwarding Information Base (FIB) i.e. the main kernel routing table that can be viewed by the 'route' command or 'cat /proc/net/route'.

The FIB is a complex data structure. I want to read all the information stored in it and create my own forwarding table. Then i have to send the information over the network to another machine where this FIB will be replicated.

Can someone guide me on how to go about accessing the FIB and creating my own forwarding table. There are a lot of functions defined in the kernel to manipulate the FIB along various attributes etc. But which functions are relevant and what steps should i follow to do this in a simplified and efficient manner? Please let me know.

Thanks in advance.


All times are GMT -5. The time now is 12:13 AM.