linux/include/linux/netfilter/ipset/ip_set_hash.h
<<
>>
Prefs
   1#ifndef __IP_SET_HASH_H
   2#define __IP_SET_HASH_H
   3
   4/* Hash type specific error codes */
   5enum {
   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        /* Range not supported */
  15        IPSET_ERR_HASH_RANGE_UNSUPPORTED,
  16        /* Invalid range */
  17        IPSET_ERR_HASH_RANGE,
  18};
  19
  20#ifdef __KERNEL__
  21
  22#define IPSET_DEFAULT_HASHSIZE          1024
  23#define IPSET_MIMINAL_HASHSIZE          64
  24#define IPSET_DEFAULT_MAXELEM           65536
  25#define IPSET_DEFAULT_PROBES            4
  26#define IPSET_DEFAULT_RESIZE            100
  27
  28#endif /* __KERNEL__ */
  29
  30#endif /* __IP_SET_HASH_H */
  31
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.