Home
last modified time | relevance | path

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

/linux/net/netfilter/
H A Dnft_payload.c705 unsigned int *l4csum_offset) in nft_payload_l4csum_offset() argument
712 *l4csum_offset = offsetof(struct tcphdr, check); in nft_payload_l4csum_offset()
719 *l4csum_offset = offsetof(struct udphdr, check); in nft_payload_l4csum_offset()
722 *l4csum_offset = offsetof(struct icmp6hdr, icmp6_cksum); in nft_payload_l4csum_offset()
728 *l4csum_offset += nft_thoff(pkt); in nft_payload_l4csum_offset()
749 int l4csum_offset; in nft_payload_l4csum_update() local
755 if (nft_payload_l4csum_offset(pkt, skb, &l4csum_offset) < 0) in nft_payload_l4csum_update()
758 if (skb_copy_bits(skb, l4csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_l4csum_update()
775 if (skb_ensure_writable(skb, l4csum_offset + sizeof(sum)) || in nft_payload_l4csum_update()
776 skb_store_bits(skb, l4csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_l4csum_update()