Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    IPv6 kernel api to find the device name from the IPv6 address

    Hi All,

    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 = function(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 Pradhan

  2. #2
    Linux User ved's Avatar
    Join Date
    Jan 2008
    New Delhi


    I m not sure about this but it may be help to configuring the kernel parameters .
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts