can I get in6_addr and ifr6_ifindex from struct sockaddr?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys,

I want to do a ioctl on a AF_INET6 socket. 
I am trying to populate struct in6_ifreq with the information from
sockaddr I got from getifaddrs(..) Pardon my ignorance, but how can I
get in6_addr and ifr6_ifindex from sockaddr??

Do I need to use inet6_aftype.input, get_socket_for_af, and
ioctl(..SIOCGIFINDEX..) ??

Cheers,
Jon.


-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux