Home
last modified time | relevance | path

Searched refs:nft_thoff (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/net/netfilter/
Dnft_exthdr.c179 tcph = skb_header_pointer(pkt->skb, nft_thoff(pkt), sizeof(*tcph), buffer); in nft_tcp_header_pointer()
187 return skb_header_pointer(pkt->skb, nft_thoff(pkt), *tcphdr_len, buffer); in nft_tcp_header_pointer()
248 if (skb_ensure_writable(pkt->skb, nft_thoff(pkt) + tcphdr_len)) in nft_exthdr_tcp_set_eval()
251 tcph = (struct tcphdr *)(pkt->skb->data + nft_thoff(pkt)); in nft_exthdr_tcp_set_eval()
328 if (skb_ensure_writable(pkt->skb, nft_thoff(pkt) + tcphdr_len)) in nft_exthdr_tcp_strip_eval()
331 tcph = (struct tcphdr *)(pkt->skb->data + nft_thoff(pkt)); in nft_exthdr_tcp_strip_eval()
375 unsigned int offset = nft_thoff(pkt) + sizeof(struct sctphdr); in nft_exthdr_sctp_eval()
425 thoff = nft_thoff(pkt); in nft_exthdr_dccp_eval()
Dnf_tables_trace.c100 nh_end = pkt->flags & NFT_PKTINFO_L4PROTO ? nft_thoff(pkt) : skb->len; in nf_trace_fill_pkt_info()
107 len = min_t(unsigned int, skb->len - nft_thoff(pkt), in nf_trace_fill_pkt_info()
110 nft_thoff(pkt), len)) in nf_trace_fill_pkt_info()
Dnft_payload.c85 unsigned int thoff = nft_thoff(pkt); in __nft_payload_inner_offset()
200 offset = nft_thoff(pkt); in nft_payload_eval()
720 if (!nft_payload_udp_checksum(skb, nft_thoff(pkt))) in nft_payload_l4csum_offset()
733 *l4csum_offset += nft_thoff(pkt); in nft_payload_l4csum_offset()
835 offset = nft_thoff(pkt); in nft_payload_set_eval()
874 nft_payload_csum_sctp(skb, nft_thoff(pkt))) in nft_payload_set_eval()
Dnft_tproxy.c91 int thoff = nft_thoff(pkt); in nft_tproxy_eval_v6()
Dnf_tables_core.c161 ptr = skb->data + nft_thoff(pkt); in nft_payload_fast_eval()
Dnft_synproxy.c112 int thoff = nft_thoff(pkt); in nft_synproxy_do_eval()
Dnft_flow_offload.c314 tcph = skb_header_pointer(pkt->skb, nft_thoff(pkt), in nft_flow_offload_eval()
Dnft_compat.c66 par->thoff = nft_thoff(pkt); in nft_compat_set_par()
/linux-6.6.21/include/net/netfilter/
Dnf_tables.h45 static inline unsigned int nft_thoff(const struct nft_pktinfo *pkt) in nft_thoff() function