summaryrefslogtreecommitdiffstats
path: root/net/vino/files
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-07-23 12:29:47 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-07-23 12:29:47 +0800
commit8a668d90962866eab7172f315bd694aa499c71f2 (patch)
tree4bc699a84abb3ec7ef9d924eba05a5069e6896b1 /net/vino/files
parentf23bf96fd2126002b00e62a3d868752f5da5d333 (diff)
downloadmarcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.tar
marcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.tar.gz
marcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.tar.bz2
marcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.tar.lz
marcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.tar.xz
marcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.tar.zst
marcuscom-ports-8a668d90962866eab7172f315bd694aa499c71f2.zip
Update to 2.23.5.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11159 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/vino/files')
-rw-r--r--net/vino/files/patch-server_libvncserver_sockets.c22
-rw-r--r--net/vino/files/patch-server_vino-http.c24
2 files changed, 46 insertions, 0 deletions
diff --git a/net/vino/files/patch-server_libvncserver_sockets.c b/net/vino/files/patch-server_libvncserver_sockets.c
new file mode 100644
index 000000000..b182a2c4f
--- /dev/null
+++ b/net/vino/files/patch-server_libvncserver_sockets.c
@@ -0,0 +1,22 @@
+Index: server/libvncserver/sockets.c
+diff -u -p server/libvncserver/sockets.c.orig server/libvncserver/sockets.c
+--- server/libvncserver/sockets.c.orig Tue Jan 2 22:34:50 2007
++++ server/libvncserver/sockets.c Sun Mar 25 22:52:02 2007
+@@ -560,6 +560,7 @@ ListenOnTCPPort(port, localOnly)
+
+ #ifdef ENABLE_IPV6
+ struct sockaddr_in6 addr_in6;
++ int off = 0;
+
+ memset(&addr_in6, 0, sizeof(addr_in6));
+ addr_in6.sin6_family = AF_INET6;
+@@ -570,6 +571,9 @@ ListenOnTCPPort(port, localOnly)
+ addrlen = sizeof(addr_in6);
+
+ sock = socket(AF_INET6, SOCK_STREAM, 0);
++#ifdef IPV6_V6ONLY
++ setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&off, sizeof(off));
++#endif
+ #endif
+
+ if (sock < 0) {
diff --git a/net/vino/files/patch-server_vino-http.c b/net/vino/files/patch-server_vino-http.c
new file mode 100644
index 000000000..d51f95885
--- /dev/null
+++ b/net/vino/files/patch-server_vino-http.c
@@ -0,0 +1,24 @@
+Index: server/vino-http.c
+diff -u -p server/vino-http.c.orig server/vino-http.c
+--- server/vino-http.c.orig Tue Feb 27 19:47:35 2007
++++ server/vino-http.c Sun Mar 25 20:56:41 2007
+@@ -595,6 +595,9 @@ vino_http_create_listening_socket (VinoH
+ {
+ #ifdef ENABLE_IPV6
+ struct sockaddr_in6 saddr_in6;
++#ifdef IPV6_V6ONLY
++ int off = 0;
++#endif
+ #endif
+ struct sockaddr_in saddr_in;
+ struct sockaddr *saddr;
+@@ -621,6 +624,9 @@ vino_http_create_listening_socket (VinoH
+
+ #ifdef ENABLE_IPV6
+ sock = socket (AF_INET6, SOCK_STREAM, 0);
++#ifdef IPV6_V6ONLY
++ setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&off, sizeof(off));
++#endif
+
+ memset (&saddr_in6, 0, sizeof (struct sockaddr_in6));
+ saddr_in6.sin6_family = AF_INET6;