[kaffe] NetworkInterfaceTest failed

Ito Kazumitsu kaz at maczuka.gcd.org
Thu May 20 15:38:03 PDT 2004

>>>>> ":" == Ito Kazumitsu <kaz at maczuka.gcd.org> writes:

:> Hi, IPv6 issue again.

This is not necessarily an IPv6 issue.

:> getByName failed: name: ed0 (ed0) addresses:
:> fe80:2::290:99ff:fe5f:4cb2/fe80:2:::290:99ff:fe5f:4cb2;
:>  != name: ed0 (ed0) addresses:

The network interface ed0 has two addresses:
	inet netmask 0xffffff00 broadcast
	inet6 fe80::290:99ff:fe5f:4cb2%ed0 prefixlen 64 scopeid 0x2

In this case, I think, java.net.getNetworkInterfaces() should
return one interface, [ed0 {, fe80::290:99ff:fe5f:4cb2}],
but actually returns two interfaces, [ed0 {}] and
[ed0 {fe80::290:99ff:fe5f:4cb2}].

On the other hand, java.net.getByName("ed0") returns only one
interface [ed0 {}].  So [ed0 {fe80::290:99ff:fe5f:4cb2}]
is not equal to [ed0 {}].

In the older version:
   ChangeLog head: 2004-05-14  Guilhem Lavaux <guilhem at kaffe.org>
java.net.getNetworkInterfaces() returned only one interface
[ed0 {}] (the second address fe80::290:99ff:fe5f:4cb2 may have
been omitted), so the regression test passed.

More information about the kaffe mailing list