1 /* IPv4-specific defines for netfilter. 2 * (C)1998 Rusty Russell -- This code is GPL. 3 */ 4 #ifndef __LINUX_IP_NETFILTER_H 5 #define __LINUX_IP_NETFILTER_H 6 7 #include <uapi/linux/netfilter_ipv4.h> 8 9 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type); 10 11 #ifdef CONFIG_INET 12 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, 13 unsigned int dataoff, u_int8_t protocol); 14 __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, 15 unsigned int dataoff, unsigned int len, 16 u_int8_t protocol); 17 #else 18 static inline __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, 19 unsigned int dataoff, u_int8_t protocol) 20 { 21 return 0; 22 } 23 static inline __sum16 nf_ip_checksum_partial(struct sk_buff *skb, 24 unsigned int hook, 25 unsigned int dataoff, 26 unsigned int len, 27 u_int8_t protocol) 28 { 29 return 0; 30 } 31 #endif /* CONFIG_INET */ 32 33 #endif /*__LINUX_IP_NETFILTER_H*/ 34