From: Enrico Scholz Date: Wed, 18 Jan 2006 23:55:53 +0000 (+0000) Subject: adjusted the vc_net_nx_type enum so that the NETTYPE_USER2KERNEL() can X-Git-Tag: version_0_30_210~31 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ec153081f460da369f74876b42758a7a18b617c;p=util-vserver.git adjusted the vc_net_nx_type enum so that the NETTYPE_USER2KERNEL() can be optimized git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2250 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index 28fade9..8279869 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -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;