Lines Matching refs:tcphdr_len
172 unsigned int len, void *buffer, unsigned int *tcphdr_len) in nft_tcp_header_pointer() argument
183 *tcphdr_len = __tcp_hdrlen(tcph); in nft_tcp_header_pointer()
184 if (*tcphdr_len < sizeof(*tcph) || *tcphdr_len > len) in nft_tcp_header_pointer()
187 return skb_header_pointer(pkt->skb, nft_thoff(pkt), *tcphdr_len, buffer); in nft_tcp_header_pointer()
196 unsigned int i, optl, tcphdr_len, offset; in nft_exthdr_tcp_eval() local
201 tcph = nft_tcp_header_pointer(pkt, sizeof(buff), buff, &tcphdr_len); in nft_exthdr_tcp_eval()
206 for (i = sizeof(*tcph); i < tcphdr_len - 1; i += optl) { in nft_exthdr_tcp_eval()
212 if (i + optl > tcphdr_len || priv->len + priv->offset > optl) in nft_exthdr_tcp_eval()
240 unsigned int i, optl, tcphdr_len, offset; in nft_exthdr_tcp_set_eval() local
244 tcph = nft_tcp_header_pointer(pkt, sizeof(buff), buff, &tcphdr_len); in nft_exthdr_tcp_set_eval()
248 if (skb_ensure_writable(pkt->skb, nft_thoff(pkt) + tcphdr_len)) in nft_exthdr_tcp_set_eval()
254 for (i = sizeof(*tcph); i < tcphdr_len - 1; i += optl) { in nft_exthdr_tcp_set_eval()
265 if (i + optl > tcphdr_len || priv->len + priv->offset > optl) in nft_exthdr_tcp_set_eval()
320 unsigned int i, tcphdr_len, optl; in nft_exthdr_tcp_strip_eval() local
324 tcph = nft_tcp_header_pointer(pkt, sizeof(buff), buff, &tcphdr_len); in nft_exthdr_tcp_strip_eval()
328 if (skb_ensure_writable(pkt->skb, nft_thoff(pkt) + tcphdr_len)) in nft_exthdr_tcp_strip_eval()
334 for (i = sizeof(*tcph); i < tcphdr_len - 1; i += optl) { in nft_exthdr_tcp_strip_eval()
341 if (i + optl > tcphdr_len) in nft_exthdr_tcp_strip_eval()