blob: fa4185db61dfff84bc66f197f3d1d612ca6d6fda [file] [log] [blame]
Willy Tarreau1b905112015-04-07 21:00:08 +02001#ifndef _NAMESPACE_H
2#define _NAMESPACE_H
KOVACS Krisztianb3e54fe2014-11-17 15:11:45 +01003
4#include <stdlib.h>
5#include <ebistree.h>
6
7struct netns_entry;
8int my_socketat(const struct netns_entry *ns, int domain, int type, int protocol);
9
10#ifdef CONFIG_HAP_NS
11
12struct netns_entry
13{
14 struct ebpt_node node;
15 size_t name_len;
16 int fd;
17};
18
19struct netns_entry* netns_store_insert(const char *ns_name);
20const struct netns_entry* netns_store_lookup(const char *ns_name, size_t ns_name_len);
21
22int netns_init(void);
23#endif /* CONFIG_HAP_NS */
24
Willy Tarreau1b905112015-04-07 21:00:08 +020025#endif /* _NAMESPACE_H */