1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
6 #include <uapi/linux/in.h>
8 static inline bool nf_reject_verify_csum(struct sk_buff *skb, int dataoff,
11 /* Skip protocols that don't use 16-bit one's complement checksum
12 * of the entire payload.
15 /* Protocols with optional checksums. */
17 const struct udphdr *udp_hdr;
18 struct udphdr _udp_hdr;
20 udp_hdr = skb_header_pointer(skb, dataoff,
23 if (!udp_hdr || udp_hdr->check)
30 /* Protocols with other integrity checks. */
35 /* Protocols with partial checksums. */
43 #endif /* _NF_REJECT_H */