-
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.
UAPI: (Scripted) Disintegrate include/linux/netfilter/ipset
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
- Loading branch information
David Howells
committed
Oct 9, 2012
1 parent
94d0ec5
commit a820141
Showing
10 changed files
with
296 additions
and
272 deletions.
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,4 +0,0 @@ | ||
header-y += ip_set.h | ||
header-y += ip_set_bitmap.h | ||
header-y += ip_set_hash.h | ||
header-y += ip_set_list.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
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,30 +1,13 @@ | ||
#ifndef __IP_SET_HASH_H | ||
#define __IP_SET_HASH_H | ||
|
||
/* Hash type specific error codes */ | ||
enum { | ||
/* Hash is full */ | ||
IPSET_ERR_HASH_FULL = IPSET_ERR_TYPE_SPECIFIC, | ||
/* Null-valued element */ | ||
IPSET_ERR_HASH_ELEM, | ||
/* Invalid protocol */ | ||
IPSET_ERR_INVALID_PROTO, | ||
/* Protocol missing but must be specified */ | ||
IPSET_ERR_MISSING_PROTO, | ||
/* Range not supported */ | ||
IPSET_ERR_HASH_RANGE_UNSUPPORTED, | ||
/* Invalid range */ | ||
IPSET_ERR_HASH_RANGE, | ||
}; | ||
#include <uapi/linux/netfilter/ipset/ip_set_hash.h> | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#define IPSET_DEFAULT_HASHSIZE 1024 | ||
#define IPSET_MIMINAL_HASHSIZE 64 | ||
#define IPSET_DEFAULT_MAXELEM 65536 | ||
#define IPSET_DEFAULT_PROBES 4 | ||
#define IPSET_DEFAULT_RESIZE 100 | ||
|
||
#endif /* __KERNEL__ */ | ||
|
||
#endif /* __IP_SET_HASH_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
#ifndef __IP_SET_LIST_H | ||
#define __IP_SET_LIST_H | ||
|
||
/* List type specific error codes */ | ||
enum { | ||
/* Set name to be added/deleted/tested does not exist. */ | ||
IPSET_ERR_NAME = IPSET_ERR_TYPE_SPECIFIC, | ||
/* list:set type is not permitted to add */ | ||
IPSET_ERR_LOOP, | ||
/* Missing reference set */ | ||
IPSET_ERR_BEFORE, | ||
/* Reference set does not exist */ | ||
IPSET_ERR_NAMEREF, | ||
/* Set is full */ | ||
IPSET_ERR_LIST_FULL, | ||
/* Reference set is not added to the set */ | ||
IPSET_ERR_REF_EXIST, | ||
}; | ||
#include <uapi/linux/netfilter/ipset/ip_set_list.h> | ||
|
||
#ifdef __KERNEL__ | ||
|
||
#define IP_SET_LIST_DEFAULT_SIZE 8 | ||
#define IP_SET_LIST_MIN_SIZE 4 | ||
|
||
#endif /* __KERNEL__ */ | ||
|
||
#endif /* __IP_SET_LIST_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# UAPI Header export list | ||
header-y += ip_set.h | ||
header-y += ip_set_bitmap.h | ||
header-y += ip_set_hash.h | ||
header-y += ip_set_list.h |
Oops, something went wrong.