enable IPv4 mapped IPv6 address.

This commit is contained in:
taya 2003-01-20 13:23:02 +00:00
parent 62541724a5
commit 91af2a906e
3 changed files with 24 additions and 7 deletions

View file

@ -1,9 +1,10 @@
# $NetBSD: Makefile,v 1.4 2003/01/11 00:30:59 taya Exp $
# $NetBSD: Makefile,v 1.5 2003/01/20 13:23:02 taya Exp $
MOZILLA= mozilla-stable
MOZILLA_BIN= mozilla-bin
MOZ_VER= 1.0.2
EXTRACT_SUFX= .tar.bz2
PKGREVISION= 1
COMMENT= Stable branch of mozilla, open source browser

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.3 2003/01/11 00:31:00 taya Exp $
$NetBSD: distinfo,v 1.4 2003/01/20 13:23:02 taya Exp $
SHA1 (mozilla-source-1.0.2.tar.bz2) = f8f33ef79cb22df4f8a2acb2d5a19fbef5778348
Size (mozilla-source-1.0.2.tar.bz2) = 30125312 bytes
@ -7,7 +7,7 @@ SHA1 (patch-ab) = 70ced122812a1bad346e572bc9a2f7d3b6bb57ef
SHA1 (patch-ac) = ed04786ce666280be5e95e52ed404facd42ad798
SHA1 (patch-ad) = 321fc86def80b80caa8be6469ddd4f663fc8d2e0
SHA1 (patch-ae) = cc8ef186f967cd0684f142039cf54f5eba1fc0bd
SHA1 (patch-am) = 726942d51727e27c233b8a98081973cb2c66f767
SHA1 (patch-am) = d59735e7495a855248196416b52d729e559cc0e1
SHA1 (patch-aw) = 6f680d54668a11aa71c10c57e9181c38fc1ff636
SHA1 (patch-ba) = c308675ce2d0d41eef22bc12603f176b2eebb6bf
SHA1 (patch-bb) = 57e6ebfcb1b769b0029f063617cbd131a3372522

View file

@ -1,7 +1,7 @@
$NetBSD: patch-am,v 1.2 2002/11/26 22:02:45 cjep Exp $
diff -ru ../Orig/mozilla/nsprpub/pr/src/pthreads/ptio.c ./nsprpub/pr/src/pthreads/ptio.c
--- ../Orig/mozilla/nsprpub/pr/src/pthreads/ptio.c Sat Jun 22 06:40:13 2002
+++ ./nsprpub/pr/src/pthreads/ptio.c Thu Sep 12 00:19:49 2002
$NetBSD: patch-am,v 1.3 2003/01/20 13:23:04 taya Exp $
--- nsprpub/pr/src/pthreads/ptio.c.orig Sat Jun 22 06:40:13 2002
+++ nsprpub/pr/src/pthreads/ptio.c Mon Jan 20 19:13:45 2003
@@ -192,7 +192,7 @@
#elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(HPUX) \
|| defined(LINUX) || defined(FREEBSD) || defined(BSDI) || defined(VMS) \
@ -11,3 +11,19 @@ diff -ru ../Orig/mozilla/nsprpub/pr/src/pthreads/ptio.c ./nsprpub/pr/src/pthread
#define _PRSockOptVal_t void *
#else
#error "Cannot determine architecture"
@@ -3414,6 +3414,15 @@
if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno);
else
{
+#if defined(__NetBSD__) && defined(_PR_INET6) && defined(IPV6_V6ONLY)
+ if(domain == PR_AF_INET6) {
+ int opt = 0;
+ if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, &opt, sizeof(opt))){
+ close(osfd);
+ return NULL;
+ }
+ }
+#endif
fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE);
if (fd == NULL) close(osfd);
}