LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-18-2005, 04:33 AM   #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
Where is the routing table created?


Hi all,

I'm working on my senior year project which is os/networks related. It involves kernel programming. I need to know where excactly the routing table is being constructed in the kernel. Which file should i look at, i looked at /usr/src/linux/net/ipv4/route.c but i couldn't understand what's happening exactly.

When you type the route command the routing table is displayed. I need to do something with the routing table entries for instance save a particular entry and send it over the network to another pc in the form of a packet. How do i go about it and where would i think about making the modifications/additions ?

Any link/resource on this kind of a thing?

Thanks in advance
 
Old 04-18-2005, 05:08 AM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 57
hi there

routes are not stored in any file but they are calculated run time based on ur IPaddres and default gateways specified

also if u want to look to the soure of the route utlility then lookinto

run this

rpm -qf /sbin/route

and u will get the name of the package that has the code for the route utility and then get the soure of that package and u can see how the roite utlilty works

regards
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
strange ip routing table props666999 Slackware 3 11-03-2004 10:58 AM
why can;t sqlj detect the table created in sqlplus? fscuopmer Linux - Software 0 07-07-2003 09:44 AM
routing table upr8830 Linux - Networking 6 06-18-2003 03:04 AM


All times are GMT -5. The time now is 01:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration