Ace_Packet_Dest_Host_Get()
Abstract
Gets the destination hostname for a packet.
Syntax
Ace_Packet_Dest _Host_Get (pk_ptr)
| Argument | Type | Description |
|---|---|---|
pk_ptr |
AceT_Packet * |
Packet of interest. |
Return Type
const char *
Destination hostname.
Header
ace_client_api.h
Example
hash_key = op_ica_conn_hash_key_obtain (
Ace_Packet_Src_Host_Get (pk_ptr),
Ace_Packet_Src_Socket_Get (pk_ptr),
Ace_Packet_Dest_Host_Get (pk_ptr),
Ace_Packet_Dest_Socket_Get (pk_ptr));
Details
This function provides a convenient way for an application-level protocol decoder to retrieve the destination hostname for a packet. Assuming the packet is an IP packet, the hostname will be of the form xxx.xxx.xxx.xxx.