On Solaris network interfaces are collected by interface name. This
results in seperate NetworkInterface instances when there are logical
interfaces configured (ie: multi-homed machines where one has interfaces
such as hme0:1, hme0:2, ...).
Although the approach ensures consistency between NetworkInterface
and ifconfig it creates two inconsistencies :-
1. On Windows there is one NetworkInterface instance per physical
interface whereas on Solaris we can have multiple instances per p
hysical interface.
2. With IPv6 it's possible for MulticastSocket.getNetworkInterface
to return a different interface that we set with setNetworkInterface.
This will arise on multi-homed systems as multiple instances of
NetworkInterface can have the same index. This issue can be
duplicate using the regression test :-
test/java/net/MulticastSocket/TestInterfaces.java
if an IPv6 site or global address configured.
For beta-refresh we need to re-examine this with a view to
collecting interfaces by physical interface.
alan.bateman@ireland 2001-07-30
- relates to
-
JDK-6800805 java.net.NetworkInterface.getNetworkInterfaces() does not list IPv6 network interfaces correctly
-
- Closed
-