* 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

View file

@ -73,6 +73,7 @@ extern "C" {
#include <clixon/clixon_hash.h>
#include <clixon/clixon_handle.h>
#include <clixon/clixon_log.h>
#include <clixon/clixon_netns.h>
#include <clixon/clixon_yang.h>
#include <clixon/clixon_yang_type.h>
#include <clixon/clixon_event.h>

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_ */