On Mon, 13 Mar 2017 00:01:35 +0100
Hannes Frederic Sowa <han...@stressinduktion.org> wrote:

> diff --git a/include/namespace.h b/include/namespace.h
> index 51324b21ba0cd5..acecc8c1f0d2b8 100644
> --- a/include/namespace.h
> +++ b/include/namespace.h
> @@ -7,6 +7,7 @@
>  #include <sys/syscall.h>
>  #include <errno.h>
>  
> +#define AFNETNS_RUN_DIR "/var/run/afnetns"
>  #define NETNS_RUN_DIR "/var/run/netns"
>  #define NETNS_ETC_DIR "/etc/netns"
>  
> @@ -14,6 +15,10 @@
>  #define CLONE_NEWNET 0x40000000      /* New network namespace (lo, device, 
> names sockets, etc) */
>  #endif
>  
> +#ifndef CLONE_NEWAFNET
> +#define CLONE_NEWAFNET       0x00001000      /* Clone new afnet context */
> +#endif
> +

These bits really need to come from a kernel exported header.

Reply via email to