Searched refs:nft_thoff (Results 1 – 9 of 9) sorted by relevance
/linux/net/netfilter/ |
H A D | nft_exthdr.c | 179 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 D | nf_tables_trace.c | 100 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 D | nft_payload.c | 76 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 D | nft_tproxy.c | 91 int thoff = nft_thoff(pkt); in nft_tproxy_eval_v6()
|
H A D | nf_tables_core.c | 161 ptr = skb->data + nft_thoff(pkt); in nft_payload_fast_eval()
|
H A D | nft_synproxy.c | 112 int thoff = nft_thoff(pkt); in nft_synproxy_do_eval()
|
H A D | nft_flow_offload.c | 315 tcph = skb_header_pointer(pkt->skb, nft_thoff(pkt), in nft_flow_offload_eval()
|
H A D | nft_compat.c | 66 par->thoff = nft_thoff(pkt); in nft_compat_set_par()
|
/linux/include/net/netfilter/ |
H A D | nf_tables.h | 45 static inline unsigned int nft_thoff(const struct nft_pktinfo *pkt) in nft_thoff() function
|