public static boolean isIsatapAddress ( Inet6Address ip ) { // If it's a Teredo address with the right port (41217, or 0xa101) // which would be encoded as 0x5efe then it can't be an ISATAP address. if ( isTeredoAddress ( ip ) ) { return false ; } byte [ ] bytes = ip . getAddress ( ) ; if ( ( bytes [ 8 ] | ( byte ) 0x03 ) != ( byte ) 0x03 ) { // Verify that high byte of the 64 bit identifier is zero, modulo // the U/L and G bits, with which we are not concerned. return false ; } return ( bytes [ 9 ] == ( byte ) 0x00 ) && ( bytes [ 10 ] == ( byte ) 0x5e ) && ( bytes [ 11 ] == ( byte ) 0xfe ) ; }
Evaluates whether the argument is an ISATAP address .