Lines Matching defs:tcp
11 #include <linux/tcp.h>
173 static __always_inline bool tcphdr_only_contains_flag(struct tcphdr *tcp,
176 return (tcp_flag_word(tcp) &
181 struct tcphdr *tcp) {
182 if (tcphdr_only_contains_flag(tcp, TCP_FLAG_SYN))
184 else if (tcphdr_only_contains_flag(tcp, TCP_FLAG_ACK))
186 else if (tcphdr_only_contains_flag(tcp, TCP_FLAG_RST))
193 struct tcphdr *tcp = transport_hdr;
195 if (tcp + 1 > data_end)
198 info->sport = bpf_ntohs(tcp->source);
199 info->dport = bpf_ntohs(tcp->dest);
200 set_tcp_flags(info, tcp);