On Mon, Apr 26, 2010 at 19:54:53 +0200, Julien Cristau wrote: > On Mon, Apr 26, 2010 at 19:30:14 +0200, Josselin Mouette wrote: > > > Le lundi 26 avril 2010 à 15:17 +0000, Clint Adams a écrit : > > > On Mon, Apr 26, 2010 at 04:53:24PM +0200, Juliusz Chroboczek wrote: > > > > The apparent consensus is being ignored -- the default value is still > > > > the one that people don't want. > > > > > > It's the one that I want. > > > > Good. Now if you or one of those who advocate this “broken by default” > > behavior could provide patches for gdm3, this would be more productive. > > > Not that I advocate the broken current default, but here's a > not-even-build-tested patch against master. > And the chooser part...
From: Julien Cristau <jcris...@debian.org> Date: Mon, 26 Apr 2010 20:00:51 +0200 Subject: [PATCH] chooser: disable IPV6_V6ONLY Signed-off-by: Julien Cristau <jcris...@debian.org> --- gui/simple-chooser/gdm-host-chooser-widget.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/gui/simple-chooser/gdm-host-chooser-widget.c b/gui/simple-chooser/gdm-host-chooser-widget.c index e694728..0c8f46c 100644 --- a/gui/simple-chooser/gdm-host-chooser-widget.c +++ b/gui/simple-chooser/gdm-host-chooser-widget.c @@ -544,6 +544,13 @@ xdmcp_init (GdmHostChooserWidget *widget) widget->priv->socket_fd = socket (AF_INET6, SOCK_DGRAM, 0); if (widget->priv->socket_fd != -1) { widget->priv->have_ipv6 = TRUE; +#ifdef IPV6_V6ONLY + { + int zero = 0; + if (setsockopt(widget->priv->socket_fd, IPPROTO_IPV6, IPV6_V6ONLY, &zero, sizeof(zero)) < 0) + g_warning("setsockopt(IPV6_V6ONLY): %s", g_strerror(errno)); + } +#endif } #endif if (! widget->priv->have_ipv6) { -- 1.7.0.5
signature.asc
Description: Digital signature