[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bug #12826] NetworkInterface.getNetworkInterfaces() should
From: |
Ito Kazumitsu |
Subject: |
[commit-cp] [bug #12826] NetworkInterface.getNetworkInterfaces() should return condensed results |
Date: |
Tue, 26 Apr 2005 22:35:23 +0000 |
User-agent: |
w3m/0.5.1 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12826>
Summary: NetworkInterface.getNetworkInterfaces() should
return condensed results
Project: classpath
Submitted by: itokaz
Submitted on: Tue 04/26/05 at 22:35
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
Let's describe a network interface whose name is n and which has
addresses a1, a2, ..., an as (n (a1 a2 ... an)), or (n a1) if
n has only on address a1 or addresses other than a1 is ignored.
NetworkInterface.getNetworkInterfaces() should return something
like this:
((n1 (a11 a12 a13)) (n2 (a21 a22))) ---[a]
But it may be the case that VMNetworkInterface.getInterfaces()
returns something like this:
((n1 a11) (n1 a12) (n1 a13) (n2 a21) (n2 a22)) ---[b]
So NetworkInterface.getNetworkInterfaces() should condense
the data structure [b] into [a]. But now it simply returns [b].
We may ask VMNetworkInterface.getInterfaces() to return already
condensed data like [a], but I cannot expect that all implementations
of VMNetworkInterface can easily do this.
This will be a problem when a network interface has both IPv4 and
IPv6 addresses.
Kaffe's NetworkInterface is modified to do the condensing.
Please refer to the articles of Kaffe's mailing list around
http://www.kaffe.org/pipermail/kaffe/2005-April/102338.html
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12826>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [commit-cp] [bug #12826] NetworkInterface.getNetworkInterfaces() should return condensed results,
Ito Kazumitsu <=