vshost-util-vserver

Build script and sources for util-vserver.
git clone https://ccx.te2000.cz/git/vshost-util-vserver
Log | Files | Refs

network.h (889B)


      1 #ifndef _VX_NETWORK_H
      2 #define _VX_NETWORK_H
      3 
      4 #include <linux/types.h>
      5 
      6 
      7 #define MAX_N_CONTEXT	65535	/* Arbitrary limit */
      8 
      9 #define NB_IPV4ROOT	16
     10 
     11 
     12 /* network flags */
     13 
     14 #define NXF_INFO_PRIVATE	0x00000008
     15 
     16 #define NXF_SINGLE_IP		0x00000100
     17 
     18 #define NXF_HIDE_NETIF		0x02000000
     19 
     20 #define NXF_STATE_SETUP		(1ULL << 32)
     21 #define NXF_STATE_ADMIN		(1ULL << 34)
     22 
     23 #define NXF_SC_HELPER		(1ULL << 36)
     24 #define NXF_PERSISTENT		(1ULL << 38)
     25 
     26 #define NXF_ONE_TIME		(0x0005ULL << 32)
     27 
     28 #define NXF_INIT_SET		(NXF_STATE_ADMIN)
     29 
     30 
     31 /* address types */
     32 
     33 #define NXA_TYPE_IPV4		0x0001
     34 #define NXA_TYPE_IPV6		0x0002
     35 
     36 #define NXA_TYPE_NONE		0x0000
     37 #define NXA_TYPE_ANY		0x00FF
     38 
     39 #define NXA_TYPE_ADDR		0x0003
     40 #define NXA_TYPE_MASK		0x0013
     41 #define NXA_TYPE_RANGE		0x0023
     42 
     43 #define NXA_MOD_BCAST		0x0100
     44 #define NXA_MOD_LBACK		0x0200
     45 
     46 
     47 #else	/* _VX_NETWORK_H */
     48 #warning duplicate inclusion
     49 #endif	/* _VX_NETWORK_H */