Is there any function in c to identify the linux box is dual stack or single stack through programatically.
i need to use inet_pton in my application
if linux box is single stack then i have to use AF_INET family.
otherwise if linux box is dual stack , i have to use AF_INET6 family.
Thanks in advance.