0001
0002
0003
0004 #ifndef __LINUX_IP_NETFILTER_H
0005 #define __LINUX_IP_NETFILTER_H
0006
0007 #include <uapi/linux/netfilter_ipv4.h>
0008
0009
0010
0011
0012 struct ip_rt_info {
0013 __be32 daddr;
0014 __be32 saddr;
0015 u_int8_t tos;
0016 u_int32_t mark;
0017 };
0018
0019 int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
0020
0021 struct nf_queue_entry;
0022
0023 #ifdef CONFIG_INET
0024 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
0025 unsigned int dataoff, u_int8_t protocol);
0026 int nf_ip_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
0027 bool strict);
0028 #else
0029 static inline __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
0030 unsigned int dataoff, u_int8_t protocol)
0031 {
0032 return 0;
0033 }
0034 static inline int nf_ip_route(struct net *net, struct dst_entry **dst,
0035 struct flowi *fl, bool strict)
0036 {
0037 return -EOPNOTSUPP;
0038 }
0039 #endif
0040
0041 #endif