updated comment and lets ignore the other fake windows pppadaptor MAC address.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1216 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MACUtil.java,v 1.5 2003/08/13 18:40:32 eric Exp $
|
// $Id: MACUtil.java,v 1.6 2003/09/05 18:07:17 eric Exp $
|
||||||
|
|
||||||
package com.samskivert.net;
|
package com.samskivert.net;
|
||||||
|
|
||||||
@@ -49,10 +49,17 @@ public class MACUtil
|
|||||||
|
|
||||||
// What fun, we have to explicitly skip PPP adaptor addresses
|
// What fun, we have to explicitly skip PPP adaptor addresses
|
||||||
// since they all start with 444553 and tend to not be unique.
|
// since they all start with 444553 and tend to not be unique.
|
||||||
// Why do I have a feeling we will find more of this?
|
// Why do I have a feeling we will find more of this? And hey
|
||||||
|
// we did find another one. Different versions of windows
|
||||||
|
// seem to magic up different magic MAC addresses that don't
|
||||||
|
// mean anything. Great. Adding 005345 to the list to
|
||||||
|
// ignore.
|
||||||
if (mac.startsWith("44-45-53") ||
|
if (mac.startsWith("44-45-53") ||
|
||||||
mac.startsWith("44:45:53")) {
|
mac.startsWith("44:45:53")) {
|
||||||
continue;
|
continue;
|
||||||
|
} else if (mac.startsWith("00-53-45-00") ||
|
||||||
|
mac.startsWith("00:53:45:00")) {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
list.add(mac);
|
list.add(mac);
|
||||||
|
|||||||
Reference in New Issue
Block a user