GTP::tunnel¶
Description¶
These commands parse the payload of G-PDU as IP datagram and return
the values from IP header and TCP/UDP header.
When parsed payload contains a value other than 4 or 6 for IP version,
the commands return an empty value. “is_ip” can be used to confirm if
parser is considering the payload as ip-datagram or not. The commands
return empty for non G-PDU messages.
Syntax¶
GTP::tunnel is_ip
GTP::tunnel ip_src
GTP::tunnel ip_dst
GTP::tunnel ip_proto
GTP::tunnel ip_version
GTP::tunnel ip_length
GTP::tunnel tcp_src_port
GTP::tunnel tcp_dst_port
GTP::tunnel udp_src_port
GTP::tunnel udp_dst_port
GTP::tunnel is_ip¶
* Returns true if the payload is an IP datagram
GTP::tunnel ip_src¶
* Returns the tunnel’s source IP
GTP::tunnel ip_dst¶
* Returns the tunnel’s destination IP
GTP::tunnel ip_proto¶
* Returns the tunnel’s IP protocol
GTP::tunnel ip_version¶
* Returns the tunnel’s IP version
GTP::tunnel ip_length¶
* Returns the length (in bytes) of the tunnel’s IP
GTP::tunnel tcp_src_port¶
* Returns the tunnel’s TCP source port
GTP::tunnel tcp_dst_port¶
* Returns the tunnel’s TCP destination port
GTP::tunnel udp_src_port¶
* Returns the tunnel’s UDP source port
GTP::tunnel udp_dst_port¶
* Returns the tunnel’s UDP destination port
Examples¶
Warning
The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.
Sample Code:
- Introduced: BIGIP-11.5.0
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.