shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU shishi branch, master, updated. shishi-1-0-1-29-g587d386


From: Simon Josefsson
Subject: [SCM] GNU shishi branch, master, updated. shishi-1-0-1-29-g587d386
Date: Thu, 06 Sep 2012 10:05:52 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU shishi".

http://git.savannah.gnu.org/cgit/shishi.git/commit/?id=587d3863176dc8d82623624bbd777d1a0a4d20af

The branch, master has been updated
       via  587d3863176dc8d82623624bbd777d1a0a4d20af (commit)
      from  d5b939b17ef241473aec023cc512be3971c8e008 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 587d3863176dc8d82623624bbd777d1a0a4d20af
Author: Mats Erik Andersson <address@hidden>
Date:   Wed Aug 15 09:39:28 2012 +0200

    shishid: Use single stacked AF_INET6 sockets.
    
    On dual stacked hosts, running an AF_INET6 wildcard
    socket blocks AF_INET wildcards. Make it single
    stacked using IPV6_V6ONLY instead.
    
    Signed-off-by: Simon Josefsson <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 src/shishid.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/shishid.c b/src/shishid.c
index ea33629..46d2b38 100644
--- a/src/shishid.c
+++ b/src/shishid.c
@@ -63,6 +63,17 @@ kdc_listen (void)
          goto error;
        }
 
+#ifdef IPV6_V6ONLY
+      if (ls->ai.ai_family == AF_INET6)
+       {
+         yes = 1;
+         if (setsockopt (ls->sockfd, IPPROTO_IPV6, IPV6_V6ONLY,
+                         (char *) &yes, sizeof (yes)) < 0)
+           error (0, errno, "Cannot restrict %s to AF_INET6 only.",
+                  ls->addrname);
+       }
+#endif
+
       yes = 1;
       if (setsockopt (ls->sockfd, SOL_SOCKET, SO_REUSEADDR,
                      (char *) &yes, sizeof (yes)) < 0)


hooks/post-receive
-- 
GNU shishi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]