adjusted the vc_net_nx_type enum so that the NETTYPE_USER2KERNEL() can
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 18 Jan 2006 23:55:53 +0000 (23:55 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 18 Jan 2006 23:55:53 +0000 (23:55 +0000)
be optimized

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2250 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/vserver.h

index 28fade9..8279869 100644 (file)
@@ -397,7 +397,9 @@ extern "C" {
   nid_t                vc_get_task_nid(pid_t pid);
   int          vc_get_nx_info(nid_t nid, struct vc_nx_info *) VC_ATTR_NONNULL((2));
 
-  typedef enum { vcNET_IPV4, vcNET_IPV6, vcNET_IPV4B, vcNET_IPV6B, vcNET_ANY } vc_net_nx_type;
+  typedef enum { vcNET_IPV4=1,      vcNET_IPV6=2,
+                vcNET_IPV4B=0x101, vcNET_IPV6B=0x102,
+                vcNET_ANY=~0 }         vc_net_nx_type;
 
   struct vc_net_nx {
       vc_net_nx_type   type;