struct te_bpf_ip_tcpudp_filter
Overview
Parameters of IPv4/IPv6 TCP/UDP filter. More…
#include <te_bpf_common.h> struct te_bpf_ip_tcpudp_filter { // fields TE_BPF_U8 ipv4; TE_BPF_U8 src_ip_addr[TE_MAX_IP_ADDR_LEN]; TE_BPF_U8 dst_ip_addr[TE_MAX_IP_ADDR_LEN]; TE_BPF_U8 protocol; TE_BPF_U8 src_port[2]; TE_BPF_U8 dst_port[2]; };
Detailed Documentation
Parameters of IPv4/IPv6 TCP/UDP filter.
Note: here uint8 is used everywhere to avoid issues with padding and ensure that structure filled on Test Engine host is interpreted correctly on TA.
Fields
TE_BPF_U8 ipv4
If nonzero, IPv4 packets are expected, otherwise IPv6 packets
TE_BPF_U8 src_ip_addr[TE_MAX_IP_ADDR_LEN]
Source IP address (if it is all-zeroes address, any address will match)
TE_BPF_U8 dst_ip_addr[TE_MAX_IP_ADDR_LEN]
Destination IP address (if it is all-zeroes address, any address will match)
TE_BPF_U8 protocol
IPPROTO_TCP or IPPROTO_UDP
TE_BPF_U8 src_port[2]
Source TCP/UDP port (if zero, any port matches)
TE_BPF_U8 dst_port[2]
Destination TCP/UDP port (if zero, any port matches)