private bool IsStandardRedirectionPdu(byte[] userData, SecurityHeaderType securityHeaderType) { // Parse security header int index = 0; TS_SECURITY_HEADER header = ParseTsSecurityHeader(userData, ref index, securityHeaderType); if (null == header) { return false; } return IsFlagExist((UInt16)header.flags, (UInt16)TS_SECURITY_HEADER_flags_Values.SEC_REDIRECTION_PKT); }