Ace_Protocol_Info_Offset_Set()
Abstract
Sets the offset of the protocol in the packet binary.
Syntax
Ace_Protocol_Info_Offset_Set (info_ptr, offset)
| Argument | Type | Description |
|---|---|---|
info_ptr |
AceT_Pk_Protocol_Info * |
Protocol information of interest. |
offset |
int |
Offset of the protocol, in bytes. |
Return Type
void
No return value.
Header
ace_client_api.h
Example
int this_offset = Ace_Protocol_Info_Offset_Get (info_ptr);
int next_offset = this_offset + OP_TCP_HEADER_LEN_GET (rec_data);
Ace_Protocol_Info_Offset_Set (next_info_ptr, next_offset);