mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-12 06:24:56 +00:00
1b90511eeb
The include file did not protect correctly against multiple inclusions, as it didn't define the file name after checking for it. That's currently harmless as the file is only included from .c but that could change.
26 lines
513 B
C
26 lines
513 B
C
#ifndef _NAMESPACE_H
|
|
#define _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 */
|