1 /* IPv4-specific defines for netfilter.
2 * (C)1998 Rusty Russell -- This code is GPL.
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.
19 int ip_route_me_harder(struct net
*net
, struct sk_buff
*skb
, unsigned addr_type
);
21 struct nf_queue_entry
;
24 __sum16
nf_ip_checksum(struct sk_buff
*skb
, unsigned int hook
,
25 unsigned int dataoff
, u_int8_t protocol
);
26 __sum16
nf_ip_checksum_partial(struct sk_buff
*skb
, unsigned int hook
,
27 unsigned int dataoff
, unsigned int len
,
29 int nf_ip_route(struct net
*net
, struct dst_entry
**dst
, struct flowi
*fl
,
31 int nf_ip_reroute(struct sk_buff
*skb
, const struct nf_queue_entry
*entry
);
33 static inline __sum16
nf_ip_checksum(struct sk_buff
*skb
, unsigned int hook
,
34 unsigned int dataoff
, u_int8_t protocol
)
38 static inline __sum16
nf_ip_checksum_partial(struct sk_buff
*skb
,
46 static inline int nf_ip_route(struct net
*net
, struct dst_entry
**dst
,
47 struct flowi
*fl
, bool strict
)
51 static inline int nf_ip_reroute(struct sk_buff
*skb
,
52 const struct nf_queue_entry
*entry
)
56 #endif /* CONFIG_INET */
58 #endif /*__LINUX_IP_NETFILTER_H*/