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

    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.


    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.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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!

Posting Permissions

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