Home
last modified time | relevance | path

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

/openbmc/linux/net/netfilter/
H A 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()
H A 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()
H A Dnft_payload.c76 unsigned int thoff = nft_thoff(pkt); in __nft_payload_inner_offset()
191 offset = nft_thoff(pkt); in nft_payload_eval()
715 if (!nft_payload_udp_checksum(skb, nft_thoff(pkt))) in nft_payload_l4csum_offset()
728 *l4csum_offset += nft_thoff(pkt); in nft_payload_l4csum_offset()
888 offset = nft_thoff(pkt); in nft_payload_set_eval()
930 nft_payload_csum_sctp(skb, nft_thoff(pkt))) in nft_payload_set_eval()
H A Dnft_tproxy.c91 int thoff = nft_thoff(pkt); in nft_tproxy_eval_v6()
H A Dnft_synproxy.c112 int thoff = nft_thoff(pkt); in nft_synproxy_do_eval()
H A Dnf_tables_core.c161 ptr = skb->data + nft_thoff(pkt); in nft_payload_fast_eval()
H A Dnft_flow_offload.c314 tcph = skb_header_pointer(pkt->skb, nft_thoff(pkt), in nft_flow_offload_eval()
H A Dnft_compat.c66 par->thoff = nft_thoff(pkt); in nft_compat_set_par()
/openbmc/linux/include/net/netfilter/
H A Dnf_tables.h45 static inline unsigned int nft_thoff(const struct nft_pktinfo *pkt) in nft_thoff() function