~ubuntu-branches/ubuntu/quantal/xtables-addons/quantal

« back to all changes in this revision

Viewing changes to extensions/ipset-5/ip_set_hash.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2011-01-13 14:21:34 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110113142134-l7au0iehf1q1wq7k
Tags: 1.32-1
* Imported Upstream version 1.32 (Closes: #593521)
  - Build on recent kernels (Closes: #590140)
* Add temporary hack to fix configure with --without-kbuild flag
* Fix clean target

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __IP_SET_HASH_H
 
2
#define __IP_SET_HASH_H
 
3
 
 
4
/* Hash type specific error codes */
 
5
enum {
 
6
        /* Hash is full */
 
7
        IPSET_ERR_HASH_FULL = IPSET_ERR_TYPE_SPECIFIC,
 
8
        /* Null-valued element */
 
9
        IPSET_ERR_HASH_ELEM,
 
10
        /* Invalid protocol */
 
11
        IPSET_ERR_INVALID_PROTO,
 
12
        /* Protocol missing but must be specified */
 
13
        IPSET_ERR_MISSING_PROTO,
 
14
};
 
15
 
 
16
#ifdef __KERNEL__
 
17
 
 
18
#define IPSET_DEFAULT_HASHSIZE          1024
 
19
#define IPSET_MIMINAL_HASHSIZE          64
 
20
#define IPSET_DEFAULT_MAXELEM           65536
 
21
#define IPSET_DEFAULT_PROBES            4
 
22
#define IPSET_DEFAULT_RESIZE            100
 
23
 
 
24
#endif /* __KERNEL__ */
 
25
 
 
26
#endif /* __IP_SET_HASH_H */