ioctl does not work with IPv6.
getifaddres – unsupported by LSB
netlink sockets – unsupported by LSB
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1) It may be after LSB version 4.1:
https://lsbbugs.linuxfoundation.org/show_bug.cgi?id=2143
2) Parsing the
/proc/nettree.3) Use the POSIX.1-2001 API getaddrinfo but support is rather limited compared with Win32 which explicitly details the operation to enumerate interfaces.