Results 1 to 2 of 2
Hi All,
Is there any function in c to identify the linux box is dual stack or single stack through programatically.
Description:
i need to use inet_pton in my application
...
- 10-22-2010 #1Linux Newbie
- Join Date
- Oct 2006
- Posts
- 107
how to know linux box is dual stack through programming
Hi All,
Is there any function in c to identify the linux box is dual stack or single stack through programatically.
Description:
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.
- 10-23-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
By single vs. dual "stack" I assume you are talking about network adapters? As for IPv4 vs IPv6, it shouldn't matter as far as the number of network ports you have. What other reason for the AF_INET6 flag to your socket address family? What are you trying to do?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote