use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / kernel / legacy.h
index 7a70069..877bfb8 100644 (file)
@@ -9,20 +9,22 @@
 #define VCMD_new_s_context     VC_CMD(COMPAT, 1, 1)
 #define VCMD_set_ipv4root      VC_CMD(COMPAT, 2, 3)
 
+#define VCMD_create_context    VC_CMD(VSETUP, 1, 0)
+
 /*  compatibiliy vserver arguments */
 
-struct  vcmd_new_s_context_v1 {
+struct vcmd_new_s_context_v1 {
        uint32_t remove_cap;
        uint32_t flags;
 };
 
-struct  vcmd_set_ipv4root_v3 {
+struct vcmd_set_ipv4root_v3 {
        /* number of pairs in id */
        uint32_t broadcast;
        struct {
                uint32_t ip;
                uint32_t mask;
-       } ip_mask_pair[NB_IPV4ROOT];
+       } nx_mask_pair[NB_IPV4ROOT];
 };
 
 
@@ -38,15 +40,15 @@ struct  vcmd_set_ipv4root_v3 {
                                        /* of the context */
 #define VX_INFO_NAMESPACE      128     /* save private namespace */
 
-       
+
 #define NB_S_CONTEXT   16
 
 #define NB_IPV4ROOT    16
 
 
 #ifdef __KERNEL__
-extern int vc_new_s_context(uint32_t, void *);
-extern int vc_set_ipv4root(uint32_t, void *);
+extern int vc_new_s_context(uint32_t, void __user *);
+extern int vc_set_ipv4root(uint32_t, void __user *);
 
 #endif /* __KERNEL__ */
 #endif /* _VX_LEGACY_H */