Searched refs:l4csum_offset (Results 1 – 1 of 1) sorted by relevance
/net/netfilter/ |
D | nft_payload.c | 414 unsigned int *l4csum_offset) in nft_payload_l4csum_offset() argument 418 *l4csum_offset = offsetof(struct tcphdr, check); in nft_payload_l4csum_offset() 425 *l4csum_offset = offsetof(struct udphdr, check); in nft_payload_l4csum_offset() 428 *l4csum_offset = offsetof(struct icmp6hdr, icmp6_cksum); in nft_payload_l4csum_offset() 434 *l4csum_offset += pkt->xt.thoff; in nft_payload_l4csum_offset() 442 int l4csum_offset; in nft_payload_l4csum_update() local 448 if (nft_payload_l4csum_offset(pkt, skb, &l4csum_offset) < 0) in nft_payload_l4csum_update() 451 if (skb_copy_bits(skb, l4csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_l4csum_update() 468 if (skb_ensure_writable(skb, l4csum_offset + sizeof(sum)) || in nft_payload_l4csum_update() 469 skb_store_bits(skb, l4csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_l4csum_update()
|