Hello,

The se_v4mapped flag is doing the opposite to what it should be.  When you 
specify tcp you get V6 only and when you specify tcp6 you get V4 mapped V6.

Cheers

Ross

*** inetd.c.orig                2009-11-24 14:58:47.000000000 +0000
--- inetd.c            2009-11-24 14:59:14.000000000 +0000
***************
*** 581,587 ****
  #ifdef IPV6
    if (sep->se_family == AF_INET6)
      {
!       int val = sep->se_v4mapped;
        if (setsockopt (sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY,
                                      (char *) &val, sizeof (val)) < 0)
                syslog (LOG_ERR, "setsockopt (IPV6_V6ONLY): %m");
--- 581,587 ----
  #ifdef IPV6
    if (sep->se_family == AF_INET6)
      {
!       int val = sep->se_v4mapped ? 0 : 1;
        if (setsockopt (sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY,
                                      (char *) &val, sizeof (val)) < 0)
                syslog (LOG_ERR, "setsockopt (IPV6_V6ONLY): %m");


Ross Alexander
SAP Basis
NEC Europe Ltd
European Information Systems
Tel:     +44 20 8752 3394

IMPORTANT: The information contained in this e-mail and attachment (if any) is 
intended for the person to whom it is addressed and may contain confidential 
and/or privileged information. The contents of this message may contain 
personal views which are not the views of NEC Europe Ltd or its subsidiaries, 
unless specifically stated. You should not copy, retain, forward or disclose 
its contents to anyone else, or take any action based upon it, if it is not 
addressed to you personally.  If you have received this e-mail in error please 
contact the sender immediately. Any legally binding agreement resulting from 
its content must be made separately in a printed

NEC Europe Limited | Registered Office: NEC House, 1 Victoria Road, London W3 
6BL | Registered in England 2832014

Reply via email to