From: <rad...@us...> - 2007-03-14 19:42:35
|
Revision: 599 http://svn.sourceforge.net/magicmap/?rev=599&view=rev Author: radetzki09 Date: 2007-03-14 12:39:17 -0700 (Wed, 14 Mar 2007) Log Message: ----------- corrected the parsing of the MAC-Address for the MacOS. Modified Paths: -------------- trunk/magicmapclient/src/net/sf/magicmap/client/net/MacOSNetworkInfo.java Modified: trunk/magicmapclient/src/net/sf/magicmap/client/net/MacOSNetworkInfo.java =================================================================== --- trunk/magicmapclient/src/net/sf/magicmap/client/net/MacOSNetworkInfo.java 2007-03-09 15:00:34 UTC (rev 598) +++ trunk/magicmapclient/src/net/sf/magicmap/client/net/MacOSNetworkInfo.java 2007-03-14 19:39:17 UTC (rev 599) @@ -39,6 +39,9 @@ if (line.startsWith("inet " + localHost)){ line = tokenizer.nextToken().trim(); + while (!line.startsWith("ether")){ + line = tokenizer.nextToken().trim(); + } String macAddressCandidate = line.substring(line.length() - 17).trim(); if (isMacAddress(macAddressCandidate)) { lastMacAddress = macAddressCandidate.toUpperCase(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |