-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jozsef Kadlecsik
authored and
Patrick McHardy
committed
Feb 1, 2011
1 parent
d8e15d0
commit 0468bc1
Showing
5 changed files
with
428 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: f830837f0eed0f9e371b8fd65169365780814bb1 | ||
refs/heads/master: d956798d82d2d331c031301965d69e17a1a48a2b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#ifndef _XT_SET_H | ||
#define _XT_SET_H | ||
|
||
#include <linux/netfilter/ipset/ip_set.h> | ||
|
||
/* Revision 0 interface: backward compatible with netfilter/iptables */ | ||
|
||
/* | ||
* Option flags for kernel operations (xt_set_info_v0) | ||
*/ | ||
#define IPSET_SRC 0x01 /* Source match/add */ | ||
#define IPSET_DST 0x02 /* Destination match/add */ | ||
#define IPSET_MATCH_INV 0x04 /* Inverse matching */ | ||
|
||
struct xt_set_info_v0 { | ||
ip_set_id_t index; | ||
union { | ||
__u32 flags[IPSET_DIM_MAX + 1]; | ||
struct { | ||
__u32 __flags[IPSET_DIM_MAX]; | ||
__u8 dim; | ||
__u8 flags; | ||
} compat; | ||
} u; | ||
}; | ||
|
||
/* match and target infos */ | ||
struct xt_set_info_match_v0 { | ||
struct xt_set_info_v0 match_set; | ||
}; | ||
|
||
struct xt_set_info_target_v0 { | ||
struct xt_set_info_v0 add_set; | ||
struct xt_set_info_v0 del_set; | ||
}; | ||
|
||
/* Revision 1: current interface to netfilter/iptables */ | ||
|
||
struct xt_set_info { | ||
ip_set_id_t index; | ||
__u8 dim; | ||
__u8 flags; | ||
}; | ||
|
||
/* match and target infos */ | ||
struct xt_set_info_match { | ||
struct xt_set_info match_set; | ||
}; | ||
|
||
struct xt_set_info_target { | ||
struct xt_set_info add_set; | ||
struct xt_set_info del_set; | ||
}; | ||
|
||
#endif /*_XT_SET_H*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.