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