Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-27-2010, 09:02 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Kernel API to find device name from IPv6 address ?

Dear Kernel Experties,

I am writing a kernel module to send IPv6 packets.
I would like to get the corresponding device name of an interface from a IPv6 address. In other words I am looking for a function like ip_dev_find() which is used in IPv4 to get device name from IPv4 address.
My intension is to populate the skb->dev element of the sk_buff structure.

so it should be like this:

skb->dev = functionName(in6_addr sourceaddress);

Please assist me on this regard. I will appreciate if anyone will provide the code snippet of a IPv6 module to send the packet.

Jitendra P.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read the start address of the ACPI table ? are there any kernel API? jitendrapradhan Linux - Kernel 0 10-08-2008 04:24 AM
device driver (serial , modem, lpt...) API document where to find ? Muttusagara Linux - Newbie 1 10-05-2007 04:51 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 02:25 PM
how to find physical address of kernel virtual address kushneeraj Programming 0 10-20-2006 08:29 PM
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 10:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:18 PM.

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