diff options
author | Volker Stolz <vs@FreeBSD.org> | 2008-07-26 01:20:04 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2008-07-26 01:20:04 +0000 |
commit | 26992747732fc9f58c82c05caf177835cfdcc725 (patch) | |
tree | e949d096a3e8475b19aff52063a30803a57bc703 /x11/gdm/files | |
parent | 3f4b001bcf23a7d3efa55e2f252e938acf8faaa5 (diff) |
Notes
Diffstat (limited to 'x11/gdm/files')
-rw-r--r-- | x11/gdm/files/patch-gui_gdmchooser.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/x11/gdm/files/patch-gui_gdmchooser.c b/x11/gdm/files/patch-gui_gdmchooser.c new file mode 100644 index 000000000000..acf5c7418414 --- /dev/null +++ b/x11/gdm/files/patch-gui_gdmchooser.c @@ -0,0 +1,27 @@ + +$FreeBSD$ + +--- gui/gdmchooser.c.orig ++++ gui/gdmchooser.c +@@ -727,7 +727,7 @@ + /* paranoia */ + ifreq.ifr_name[sizeof (ifreq.ifr_name) - 1] = '\0'; + +- if (ioctl (sock, SIOCGIFFLAGS, &ifreq) < 0) ++ if ((ioctl (sock, SIOCGIFFLAGS, &ifreq) < 0) && (errno != ENXIO)) + gdm_common_error ("Could not get SIOCGIFFLAGS for %s", ifr[i].ifr_name); + + if ((ifreq.ifr_flags & IFF_UP) == 0 || +@@ -1123,6 +1123,12 @@ + have_ipv6 = FALSE; + else + have_ipv6 = TRUE; ++ /* Net- & FreeBSD default to V6ONLY */ ++ { ++ int no = 0; ++ setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, &no, sizeof(no)); ++ } ++ + #endif + if ( ! have_ipv6) { + if ((sockfd = socket (AF_INET, SOCK_DGRAM, 0)) == -1) { |