Name: boT120536 Date: 06/03/2001
(Not relevant)
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
Hi! I have the following improvement suggestion: I'd like more methods for
access to low level network/OSI information and/or modification...
I can get the host name and IP address through java.net.InetAddress. I'd like a
new class java.net.EthernetAddress, where I should be able to get the MAC
(Media Access Control) address for the network card(s) on the computer.
It is important that I get it in the same format regardless of platform - for
example if I run "ipconfig /all" under Windows, then I get it in the form
of "01-02-03-40-50-60", but if I run "ifconfig -a" under Solaris and look
for "ether", then I get it in the form of "1:2:3:40:50:60" (the numbers are not
zero-padded, and the numbers are separated with ':' instead of '-'). It would
be nice to get the MAC as "byte[6]"...
(Review ID: 125398)
======================================================================