blob: e67742b1bf0c1b83535fe929e66451de4c14078e [file] [log] [blame]
#ifndef NAMESPACE_H
#include <stdlib.h>
#include <ebistree.h>
struct netns_entry;
int my_socketat(const struct netns_entry *ns, int domain, int type, int protocol);
#ifdef CONFIG_HAP_NS
struct netns_entry
{
struct ebpt_node node;
size_t name_len;
int fd;
};
struct netns_entry* netns_store_insert(const char *ns_name);
const struct netns_entry* netns_store_lookup(const char *ns_name, size_t ns_name_len);
int netns_init(void);
#endif /* CONFIG_HAP_NS */
#endif /* NAMESPACE_H */