LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2005, 04:17 PM   #1
sidra
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora Core 3, Red Hat 9, CentOS 4.2, Mandriva, Ret Hat Enterprise Linux 4.0
Posts: 116

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel IP routing tables rleesBSD Linux - Networking 1 07-02-2005 08:57 PM
How to modify TCP implementation in kernel?? karanld Linux - Networking 3 03-02-2005 07:15 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
the procudre of implementation of system call in kernel 2.6 with example abhis_mail2002 Fedora 0 10-15-2004 10:17 AM
routing at kernel level ramu_ak Linux - Networking 0 08-17-2003 07:40 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration