2.2.9.2.1.5 TSG_PACKET_RESPONSE
The TSG_PACKET_RESPONSE structure contains the response of the RDG server to the RDG client for the TsProxyAuthorizeTunnel method call. The value of the packetId field in TSG_PACKET MUST be set to TSG_PACKET_TYPE_RESPONSE.
-
typedef struct _TSG_PACKET_RESPONSE { unsigned long flags; unsigned long reserved; [size_is(responseDataLen)] byte* responseData; [range(0, 24000)] unsigned long responseDataLen; TSG_REDIRECTION_FLAGS redirectionFlags; } TSG_PACKET_RESPONSE, *PTSG_PACKET_RESPONSE;
flags: The RDG server MUST set this value to TSG_PACKET_TYPE_QUARREQUEST to indicate that this structure is in response to the TsProxyAuthorizeTunnel method call. The RDG client MAY ignore this field.
reserved: This field is unused and can be any value when sending and ignored on receipt.
responseData: Byte data representing the response from the RDG server for the TsProxyAuthorizeTunnel method call. If the Negotiated Capabilities ADM element contains TSG_NAP_CAPABILITY_QUAR_SOH and TSG_NAP_CAPABILITY_IDLE_TIMEOUT and the value of the dataLen member specified in the TSG_PACKET_QUARREQUEST structure (section 2.2.9.2.1.4) is greater than zero, then responseData MUST contain both the statement of health response (SoHR) and the idle timeout value. If Negotiated Capabilities contains only TSG_NAP_CAPABILITY_QUAR_SOH and the value of the dataLen member specified in the TSG_PACKET_QUARREQUEST structure (section 2.2.9.2.1.4) is greater than zero, then responseData MUST contain only the statement of health response. If Negotiated Capabilities contains only TSG_NAP_CAPABILITY_IDLE_TIMEOUT, then responseData MUST contain only the idle timeout value. The length of the data MUST be equal to that specified by responseDataLen. If Negotiated Capabilities does not contain both TSG_NAP_CAPABILITY_QUAR_SOH and TSG_NAP_CAPABILITY_IDLE_TIMEOUT, then responseData is ignored and responseDataLen is set to zero.<17>
responseDataLen: Length, in bytes, of the data specified by the responseData field.
redirectionFlags: A TSG_REDIRECTION_FLAGS structure.<18>