Merge tag 'spi-fix-v4.19-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6/btrfs-unstable.git] / include / linux / netfilter_ipv4.h
blob95ab5cc64422687a0003a8719facb8f4a480285b
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
7 #include <uapi/linux/netfilter_ipv4.h>
9 /* Extra routing may needed on local out, as the QUEUE target never returns
10 * control to the table.
12 struct ip_rt_info {
13 __be32 daddr;
14 __be32 saddr;
15 u_int8_t tos;
16 u_int32_t mark;
19 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
21 struct nf_queue_entry;
23 #ifdef CONFIG_INET
24 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
25 unsigned int dataoff, u_int8_t protocol);
26 int nf_ip_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
27 bool strict);
28 int nf_ip_reroute(struct sk_buff *skb, const struct nf_queue_entry *entry);
29 #else
30 static inline __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
31 unsigned int dataoff, u_int8_t protocol)
33 return 0;
35 static inline int nf_ip_route(struct net *net, struct dst_entry **dst,
36 struct flowi *fl, bool strict)
38 return -EOPNOTSUPP;
40 static inline int nf_ip_reroute(struct sk_buff *skb,
41 const struct nf_queue_entry *entry)
43 return -EOPNOTSUPP;
45 #endif /* CONFIG_INET */
47 #endif /*__LINUX_IP_NETFILTER_H*/