]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - include/linux/netfilter_ipv4.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatchin...
[mirror_ubuntu-eoan-kernel.git] / include / linux / netfilter_ipv4.h
CommitLineData
1da177e4
LT
1/* IPv4-specific defines for netfilter.
2 * (C)1998 Rusty Russell -- This code is GPL.
3 */
607ca46e
DH
4#ifndef __LINUX_IP_NETFILTER_H
5#define __LINUX_IP_NETFILTER_H
1da177e4 6
607ca46e 7#include <uapi/linux/netfilter_ipv4.h>
1da177e4 8
7db9a51e
PNA
9/* Extra routing may needed on local out, as the QUEUE target never returns
10 * control to the table.
11 */
12struct ip_rt_info {
13 __be32 daddr;
14 __be32 saddr;
15 u_int8_t tos;
16 u_int32_t mark;
17};
18
e45f5066 19int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned addr_type);
ef71fe27 20
ce388f45
PNA
21struct nf_queue_entry;
22
ef71fe27 23#ifdef CONFIG_INET
a0f4ecf3
JP
24__sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
25 unsigned int dataoff, u_int8_t protocol);
3f87c08c
PNA
26int nf_ip_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
27 bool strict);
ef71fe27
PNA
28#else
29static inline __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook,
30 unsigned int dataoff, u_int8_t protocol)
31{
32 return 0;
33}
3f87c08c
PNA
34static inline int nf_ip_route(struct net *net, struct dst_entry **dst,
35 struct flowi *fl, bool strict)
36{
37 return -EOPNOTSUPP;
38}
ef71fe27
PNA
39#endif /* CONFIG_INET */
40
1da177e4 41#endif /*__LINUX_IP_NETFILTER_H*/