From owner-freebsd-java Fri Jan 30 14:14:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA05694 for java-outgoing; Fri, 30 Jan 1998 14:14:16 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from mail.csi.UOttawa.CA (root@mail.csi.uottawa.ca [137.122.24.142]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA05555 for ; Fri, 30 Jan 1998 14:13:39 -0800 (PST) (envelope-from Keith.White@site.uottawa.ca) Received: from infoaf.csi.uottawa.ca (kwhite@infoaf.csi.uottawa.ca [137.122.24.39]) by mail.csi.UOttawa.CA (8.6.9/8.6.9) with SMTP id RAA02060; Fri, 30 Jan 1998 17:13:40 -0500 Date: Fri, 30 Jan 1998 17:06:56 -0500 (EST) From: Keith White Reply-To: Keith.White@site.uottawa.ca Subject: RE: bug in MulticastSocket.setInterface() To: Archie Cobbs cc: freebsd-java@FreeBSD.ORG, java-port@mt.sri.com In-Reply-To: Archie Cobbs's message of Fri, 30 Jan 1998 11:34:36 -0800 (PST): <199801301934.LAA15454@bubba.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe java" > When I run the program below, I get this exception: > > $ java test.McastTest > address is foo.bar.com/192.168.1.10 > creating socket > setting iface > java.net.SocketException: invalid DatagramSocket option > at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:155) > at java.net.MulticastSocket.setInterface(MulticastSocket.java:179) > at test.McastTest.main(McastTest.java:22) > > There seems to be some bug in the setInterface() method. Has any one > else seen this, or better yet fixed it? > ... Thanks to your sample program, yes. A shall commit a fix (for the port) shortly. For source licensees: the problem is with the JIP_MULTICAST_IF definition in freebsd/src/socket.c ...keith -- Keith White, EITI/SITE, University of Ottawa kwhite@site.uottawa.ca [+1 613 562 5800 x6681] FAX [+1 613 562 5187]