Networking Forums

Networking Forums > Computer Networking > Linux Networking > How do I access the routing table from the kernel?

Reply
Thread Tools Display Modes

How do I access the routing table from the kernel?

 
 
Carl-Gustaf Wennstrom IB
Guest
Posts: n/a

 
      10-02-2003, 01:13 PM
Hello, everybody!

I was hoping somebody could help me with my problem. We're writing a
kernel module, which should be able to check if an address is in the
routing table. What is the right way to do this?

We have tried searching for a suitable function and the best we've found
is fib_lookup() (ip_fib.h). The module compiles fine, but when we try to
load it, we get 'unresolved symbol fib_lookup'.

Any suggestions? (i.e. if you where to do the same thing, how would you do
it?

Thanx for any help!

/Cage

--
Carl-Gustaf Wennström * Computer Engineering at Åbo Akademi University
(E-Mail Removed) * "When the going gets tough
http://www.abo.fi/~cawennst/ * the tough get going"

 
Reply With Quote
 
 
 
 
armin walland
Guest
Posts: n/a

 
      10-03-2003, 01:35 PM
On Thu, 2 Oct 2003 16:13:47 +0300, Carl-Gustaf Wennstrom IB wrote:
> I was hoping somebody could help me with my problem. We're writing a
> kernel module, which should be able to check if an address is in the
> routing table. What is the right way to do this?


sorry, i am not a programmer but my idea would be to d/l the source code
of the 'route' program and search how it is done there
i have no idea if the same functions are available for kernel modules
and for userland utilities, just an idea.

good luck

--
my life, my universe, my everything
www.dtch.org

 
Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two default gw in kernel routing table Binary Linux Networking 16 02-23-2007 04:17 PM
Routing table Matt Scoff Windows Networking 6 06-08-2006 02:19 AM
Kernel IP Routing Table Alex Bell Linux Networking 2 06-01-2005 11:33 AM
wireless access point, vpn, "routing table cannot be altered" error Greg Wireless Internet 4 01-06-2004 04:53 PM
kernel limit on # of MAC addresses on firewall? --Neighbour Table Overflow Jones Linux Networking 0 09-18-2003 04:34 PM



1 2 3 4 5 6 7 8 9 10 11