ltm rule command TCP offset
iRule(1) BIG-IP TMSH Manual iRule(1)
TCP::offset
Returns the number of bytes held in memory via TCP::collect.
SYNOPSIS
TCP::offset
DESCRIPTION
Returns the number of bytes currently held in memory via TCP::collect.
This data is available via TCP::payload.
Syntax
TCP::offset
* Returns the number of bytes currently held in memory via
TCP::collect.
RETURN VALUE
The number of bytes collected.
VALID DURING
CLIENT_ACCEPTED, CLIENT_CLOSED, CLIENT_DATA, SERVER_CLOSED,
SERVER_CONNECTED, SERVER_DATA, SIP_REQUEST, SIP_REQUEST_SEND,
SIP_RESPONSE, STREAM_MATCHED
EXAMPLES
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
set datalen [TCP::offset]
log local0.info "Collected $datalen bytes of data!"
TCP::release
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)