Willy Tarreau | 1b90511 | 2015-04-07 21:00:08 +0200 | [diff] [blame] | 1 | #ifndef _NAMESPACE_H |
| 2 | #define _NAMESPACE_H |
KOVACS Krisztian | b3e54fe | 2014-11-17 15:11:45 +0100 | [diff] [blame] | 3 | |
| 4 | #include <stdlib.h> |
| 5 | #include <ebistree.h> |
| 6 | |
| 7 | struct netns_entry; |
| 8 | int my_socketat(const struct netns_entry *ns, int domain, int type, int protocol); |
| 9 | |
| 10 | #ifdef CONFIG_HAP_NS |
| 11 | |
| 12 | struct netns_entry |
| 13 | { |
| 14 | struct ebpt_node node; |
| 15 | size_t name_len; |
| 16 | int fd; |
| 17 | }; |
| 18 | |
| 19 | struct netns_entry* netns_store_insert(const char *ns_name); |
| 20 | const struct netns_entry* netns_store_lookup(const char *ns_name, size_t ns_name_len); |
| 21 | |
| 22 | int netns_init(void); |
| 23 | #endif /* CONFIG_HAP_NS */ |
| 24 | |
Willy Tarreau | 1b90511 | 2015-04-07 21:00:08 +0200 | [diff] [blame] | 25 | #endif /* _NAMESPACE_H */ |