Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290800
b: refs/heads/master
c: ae8ded1
h: refs/heads/master
v: v3
  • Loading branch information
Jan Engelhardt authored and Pablo Neira Ayuso committed Mar 7, 2012
1 parent c0e65af commit de30def
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c15f1c83251049182b1771da004d14f29683ab97
refs/heads/master: ae8ded1cb88b9c24f3c9552ca9eefd894b069716
26 changes: 14 additions & 12 deletions trunk/include/linux/netfilter/ipset/ip_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* published by the Free Software Foundation.
*/

#include <linux/types.h>

/* The protocol version */
#define IPSET_PROTOCOL 6

Expand Down Expand Up @@ -168,19 +170,10 @@ enum ipset_adt {
IPSET_CADT_MAX,
};

#ifdef __KERNEL__
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/netlink.h>
#include <linux/netfilter.h>
#include <linux/netfilter/x_tables.h>
#include <linux/vmalloc.h>
#include <net/netlink.h>

/* Sets are identified by an index in kernel space. Tweak with ip_set_id_t
* and IPSET_INVALID_ID if you want to increase the max number of sets.
*/
typedef u16 ip_set_id_t;
typedef __u16 ip_set_id_t;

#define IPSET_INVALID_ID 65535

Expand All @@ -203,6 +196,15 @@ enum ip_set_kopt {
IPSET_DIM_THREE_SRC = (1 << IPSET_DIM_THREE),
};

#ifdef __KERNEL__
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/netlink.h>
#include <linux/netfilter.h>
#include <linux/netfilter/x_tables.h>
#include <linux/vmalloc.h>
#include <net/netlink.h>

/* Set features */
enum ip_set_feature {
IPSET_TYPE_IP_FLAG = 0,
Expand Down Expand Up @@ -453,6 +455,8 @@ bitmap_bytes(u32 a, u32 b)
return 4 * ((((b - a + 8) / 8) + 3) / 4);
}

#endif /* __KERNEL__ */

/* Interface to iptables/ip6tables */

#define SO_IP_SET 83
Expand All @@ -478,6 +482,4 @@ struct ip_set_req_version {
unsigned version;
};

#endif /* __KERNEL__ */

#endif /*_IP_SET_H */

0 comments on commit de30def

Please sign in to comment.