Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 1998 17:06:56 -0500 (EST)
From:      Keith White <Keith.White@site.uottawa.ca>
To:        Archie Cobbs <archie@whistle.com>
Cc:        freebsd-java@FreeBSD.ORG, java-port@mt.sri.com
Subject:   RE: bug in MulticastSocket.setInterface()
Message-ID:  <XLView.886198419.5474.kwhite@infoaf>
In-Reply-To: Archie Cobbs's message of Fri, 30 Jan 1998 11:34:36 -0800 (PST): <199801301934.LAA15454@bubba.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XLView.886198419.5474.kwhite>