[kaffe] MulticastSocket not joining more than one interface

Everton da Silva Marques everton at lab.ipaccess.diveo.net.br
Mon Dec 1 16:03:02 PST 2003


Hi,

My app tries to join a MulticastSocket to the
multicast group 224.0.0.9 on every attached
interface, like this:

// Pseudo java code
for every local address 'addr' {
  multicastSocket.setInterface(addr)
  multicastSocket.join(224.0.0.9)
}

Unfortunately, both kaffe from CVS (2003-11-12)
and gcj-3.3.2 binaries result in:

$ netstat -gn
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.1
eth0            1      224.0.0.9
eth0            1      224.0.0.1
tap0            1      224.0.0.1
dummy0          1      224.0.0.1

As can be seen above, only interface eth0
has joined 224.0.0.9.

j2sdk1.4.2_02 yields the correct behavior:

$ netstat -gn
IPv6/IPv4 Group Memberships
Interface       RefCnt Group
--------------- ------ ---------------------
lo              1      224.0.0.9
lo              1      224.0.0.1
eth0            1      224.0.0.9
eth0            1      224.0.0.1
tap0            1      224.0.0.9
tap0            1      224.0.0.1
dummy0          2      224.0.0.9
dummy0          1      224.0.0.1

Is this known, or maybe fixed in
newer Classpath/Kaffe CVS ?

Thanks,
Everton





More information about the kaffe mailing list