LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-27-2010, 08:02 AM   #1
Jpradhan
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.


Thanks,
Jitendra P.
 
  


Reply



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 03:24 AM
device driver (serial , modem, lpt...) API document where to find ? Muttusagara Linux - Newbie 1 10-05-2007 03:51 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 01:25 PM
how to find physical address of kernel virtual address kushneeraj Programming 0 10-20-2006 07:29 PM
API for mapping Physical Address to Virtual Address Lakshman_smt Linux - Software 2 10-15-2006 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:34 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