public static boolean isReservedMACAddress(String s){
  if (!looksLikeBluetoothAddress(s)) {
    return false;
  }
  s=s.replace(":","-");
  s=s.toUpperCase();
  if (Pattern.matches("^0[0-3]-00-5E.*",s)) {
    return true;
  }
 else   if (Pattern.matches("^FF-FF-FF-FF-FF-FF$",s)) {
    return true;
  }
  return false;
}

public static boolean isReservedMACAddress ( String s ) { if ( ! looksLikeBluetoothAddress ( s ) ) { return false ; } s = s . replace ( ":" , "-" ) ; s = s . toUpperCase ( ) ; if ( Pattern . matches ( "^0[0-3]-00-5E.*" , s ) ) { return true ; } else if ( Pattern . matches ( "^FF-FF-FF-FF-FF-FF$" , s ) ) { return true ; } return false ; }
check whether the address is owned by iana or is the broadcast address ( ff : ff : ff : ff : ff : ff ) . todo ( lerner ) : improve this check . we might want to reject all multicast / broadcast and such ; addresses not assigned to anyone ; or other reserved addresses that i might not have been able to find .
