* Restconf evhtp using network namespaces implemented

This commit is contained in:
Olof hagsand 2021-01-26 17:33:24 +01:00
parent 3fe218da2e
commit a5f32fbedf
8 changed files with 479 additions and 98 deletions

14
lib/clixon/clixon_netns.h Normal file
View file

@ -0,0 +1,14 @@
/*
* Network namespace code
* @thanks Anders Franzén, especially get_sock() and send_sock() functions
*/
#ifndef _CLIXON_NETNS_H_
#define _CLIXON_NETNS_H_
/*
* Prototypes
*/
int clixon_netns_socket(const char *netns, struct sockaddr *sa, size_t sin_len, int backlog, int *sock);
#endif /* _CLIXON_NETNS_H_ */