This commit adds support for the 2.1 vserver API.
[util-vserver.git] / kernel / network.h
index 0e0253b..4841f9f 100644 (file)
 
 /* network flags */
 
+#define NXF_INFO_LOCK          0x00000001
+
 #define NXF_STATE_SETUP                (1ULL<<32)
+#define NXF_STATE_ADMIN                (1ULL<<34)
 
 #define NXF_SC_HELPER          (1ULL<<36)
 #define NXF_PERSISTENT         (1ULL<<38)
 
-#define NXF_ONE_TIME           (0x0001ULL<<32)
+#define NXF_ONE_TIME           (0x0005ULL<<32)
 
-#define NXF_INIT_SET           (0)
+#define NXF_INIT_SET           (NXF_STATE_ADMIN)
 
 
 /* address types */
@@ -71,6 +74,26 @@ struct nx_info {
 #define NXS_SHUTDOWN    0x0100
 #define NXS_RELEASED    0x8000
 
+/* check conditions */
+
+#define NX_ADMIN       0x0001
+#define NX_WATCH       0x0002
+#define NX_BLEND       0x0004
+#define NX_HOSTID      0x0008
+
+#define NX_IDENT       0x0010
+#define NX_EQUIV       0x0020
+#define NX_PARENT      0x0040
+#define NX_CHILD       0x0080
+
+#define NX_ARG_MASK    0x00F0
+
+#define NX_DYNAMIC     0x0100
+#define NX_STATIC      0x0200
+
+#define NX_ATR_MASK    0x0F00
+
+
 extern struct nx_info *lookup_nx_info(int);
 
 extern int get_nid_list(int, unsigned int *, int);