aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2008-01-15 02:40:34 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:02:22 -0500
commit2e3075a2c4364c0e8726ac2a0f3b1708da781bac (patch)
treee002a1fa998374e440b263caddc1715220072156 /include
parent96e3227265852ffad332f911887c9cf26c85e40a (diff)
[NETFILTER]: Extend nf_inet_addr with in{,6}_addr
Extend union nf_inet_addr with struct in_addr and in6_addr. Useful because a lot of in-kernel IPv4 and IPv6 functions use in_addr/in6_addr. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index c41f6438095d..d74e79bacd2d 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -7,6 +7,8 @@
7#include <linux/skbuff.h> 7#include <linux/skbuff.h>
8#include <linux/net.h> 8#include <linux/net.h>
9#include <linux/if.h> 9#include <linux/if.h>
10#include <linux/in.h>
11#include <linux/in6.h>
10#include <linux/wait.h> 12#include <linux/wait.h>
11#include <linux/list.h> 13#include <linux/list.h>
12#endif 14#endif
@@ -52,6 +54,8 @@ union nf_inet_addr {
52 u_int32_t all[4]; 54 u_int32_t all[4];
53 __be32 ip; 55 __be32 ip;
54 __be32 ip6[4]; 56 __be32 ip6[4];
57 struct in_addr in;
58 struct in6_addr in6;
55}; 59};
56 60
57#ifdef __KERNEL__ 61#ifdef __KERNEL__