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

[leafnode-list] leafnode 1.9.23.rc2 on FreeBSD with IPv6 patch



Hello,

leafnode 1.9.23.rc2 does not compile --with-ipv6 on FreeBSD.

This patch remedies this. The patches leafnode 1.9.23.rc2 will then
successfully compile --with-ipv6 on Solaris 8/Sparc, FreeBSD 4.6/i386,
SuSE Linux 7.3/i386.

diff -u -r1.7 -r1.8
--- checkpeerlocal.c.orig	2002/07/01 13:13:48	1.7
+++ checkpeerlocal.c	2002/07/04 01:36:55	1.8
@@ -127,7 +127,7 @@
 	    D((printf("IPv4 mapped IPv6 address\n")));
 	    si.sin_family = AF_INET;
 	    si.sin_port = i6->sin6_port;
-	    memcpy(&si.sin_addr, &(i6->sin6_addr.s6_addr32[3]), 4);
+	    memcpy(&si.sin_addr, &(i6->sin6_addr.s6_addr[12]), 4);
 	    memcpy(addr, &si, sizeof(struct sockaddr_in));
 	} else {
 	    return 0;

-- 
Matthias Andree

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list