1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add patch which backouts some of my early compile hacks which now preventing

MulticastSocket.joinGroup() from behaving correctly.

Submitted by:	Stefan Farfeleder <stefan@fafoe.dyndns.org>
This commit is contained in:
Alexey Zelkin 2003-03-11 08:13:53 +00:00
parent 3ce692f6e4
commit 4b12e892bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77088
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c.orig Tue Mar 11 10:43:29 2003
+++ ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c Tue Mar 11 10:43:24 2003
@@ -2034,9 +2034,7 @@
/*
* Join the multicast group.
*/
-// XXXBSD: fix for BSD (re-implement with KAME ?)
-// if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP),
- if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? 1 : 0),
+ if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP),
(char *) &mname, mname_len) < 0) {
/*

View File

@ -0,0 +1,13 @@
--- ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c.orig Tue Mar 11 10:43:29 2003
+++ ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c Tue Mar 11 10:43:24 2003
@@ -2034,9 +2034,7 @@
/*
* Join the multicast group.
*/
-// XXXBSD: fix for BSD (re-implement with KAME ?)
-// if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP),
- if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? 1 : 0),
+ if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP),
(char *) &mname, mname_len) < 0) {
/*

View File

@ -0,0 +1,13 @@
--- ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c.orig Tue Mar 11 10:43:29 2003
+++ ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c Tue Mar 11 10:43:24 2003
@@ -2034,9 +2034,7 @@
/*
* Join the multicast group.
*/
-// XXXBSD: fix for BSD (re-implement with KAME ?)
-// if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP),
- if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? 1 : 0),
+ if (JVM_SetSockOpt(fd, IPPROTO_IP, (join ? IP_ADD_MEMBERSHIP:IP_DROP_MEMBERSHIP),
(char *) &mname, mname_len) < 0) {
/*