lkml.org 
[lkml]   [1999]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectFinding the destination device for an IP packet.
Date

Hello.

I am trying to find the right way to find the network
device that should receive the packet (based on the destination
IP in the packet).

The code works from kernel module, so basically all I
have is sk_buf and no access to kernel variables.

If would help me a lot if I knew how to get routing
information from the kernel (something like the
info displayed in /proc/net/route), or, even better,
how to get the device * or device name of the
device that is supposed to receive the packet.


Thank you

Roman



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

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.019 / U:2.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site