#ifndef CURVETUN_H #define CURVETUN_H #include #define FILE_CLIENTS ".curvetun/clients" #define FILE_SERVERS ".curvetun/servers" #define FILE_PRIVKEY ".curvetun/priv.key" #define FILE_PUBKEY ".curvetun/pub.key" #define FILE_USERNAM ".curvetun/username" #define LOCKFILE "/var/run/curvetun.pid" #define DEFAULT_KEY_LEN 64 #define PROTO_FLAG_EXIT (1 << 0) #define PROTO_FLAG_INIT (1 << 1) struct ct_proto { uint16_t payload; uint8_t flags; } __attribute__((packed)); /* FIXME: think up sth better */ #define TUNBUFF_SIZ (3 * getpagesize()) #define MAX_EPOLL_SIZE 10000 #define THREADS_PER_CPU 2 extern int server_main(char *home, char *dev, char *port, int udp, int ipv4, int log); extern int client_main(char *home, char *dev, char *host, char *port, int udp); #define DEVNAME_SERVER "curves0" #define DEVNAME_CLIENT "curvec0" #endif /* CURVETUN_H */ ='hidden' name='id' value='165f1cc0b5858b17cbb31312e861495f4500d9f0'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/nfc/digital.h
n value='4'>4
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2017-01-18 18:30:12 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-02-08 14:16:21 +0100
commit0b5a78749260560f41e3b7c1f60f2c7dd9aff4f0 (patch)
treeb530e526e7535250bf4a03fec866341de33be9a2 /net/netfilter
parent55af753cd9fda9c5300f5318253b08bd15fb412e (diff)
netfilter: nf_tables: add space notation to sets
The space notation allows us to classify the set backend implementation based on the amount of required memory. This provides an order of the set representation scalability in terms of memory. The size field is still left in place so use this if the userspace provides no explicit number of elements, so we cannot calculate the real memory that this set needs. This also helps us break ties in the set backend selection routine, eg. two backend implementations provide the same performance. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_tables_api.c22
-rw-r--r--net/netfilter/nft_set_hash.c1
-rw-r--r--net/netfilter/nft_set_rbtree.c1
3 files changed, 19 insertions, 5 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c