[Bug 1609] New: inetd should add IPV6_V6ONLY option to IPv6 socket

bugzilla at busybox.net bugzilla at busybox.net
Thu Apr 22 03:22:54 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=1609

           Summary: inetd should add IPV6_V6ONLY option to IPv6 socket
           Product: Busybox
           Version: 1.16.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: patch
          Severity: minor
          Priority: P5
         Component: Networking
        AssignedTo: unassigned at busybox.net
        ReportedBy: lai.chunfu at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


I can't open IPv4 and IPv6 listens at the same time due to the fault of 'bind'
function. Does anyone want to use IPv4 mapped address? Can we set IPV6_V6ONLY
option to IPv6 socket with some conditions?
In my case, IPV6_V6ONLY is normally set.

----
#if ENABLE_FEATURE_IPV6
                if (sep->se_family == AF_INET6) {       // AFU patched
                        int v6only = 1;
                        setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &v6only,
sizeof(v6only));
                }
#endif
                r = bind(fd, &sep->se_lsa->u.sa, sep->se_lsa->len);


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list