X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fvirtual.h;h=f880c98a06b6e654d776e92c6bdc9c8731743abd;hb=3eb1b2279739d0f16391a3724a9897c686f030d3;hp=f05fb406b7313c2f36029b4999bf23be68cd18eb;hpb=0ad70edd7b91460f581d088291b255f34551ccbf;p=util-vserver.git diff --git a/util-vserver/lib/virtual.h b/util-vserver/lib/virtual.h index f05fb40..f880c98 100644 --- a/util-vserver/lib/virtual.h +++ b/util-vserver/lib/virtual.h @@ -1,57 +1,31 @@ -#ifndef _LINUX_VIRTUAL_H -#define _LINUX_VIRTUAL_H - -#define VC_CATEGORY(c) (((c) >> 24) & 0x3F) -#define VC_COMMAND(c) (((c) >> 16) & 0xFF) -#define VC_VERSION(c) ((c) & 0xFFF) - -#define VC_CMD(c,i,v) ((((VC_CAT_ ## c) & 0x3F) << 24) \ - | (((i) & 0xFF) << 16) | ((v) & 0xFFF)) - -#define VC_CAT_VERSION 0 -#define VC_CAT_PROCESS 1 -#define VC_CAT_MEMORY 2 -#define VC_CAT_NETWORK 3 - -#define VC_CAT_LIMITS 8 -#define VC_CAT_QUOTA 9 - -#define VC_CAT_OTHER 62 -#define VC_CAT_COMPAT 63 - -/* interface version */ - - //#define VC_VERSION 0x00010000 - - - -/* query version */ - -#define VCMD_get_version VC_CMD(VERSION, 0, 0) - - -/* compatibiliy vserver commands */ - -#define VCMD_new_s_context VC_CMD(COMPAT, 1, 1) -#define VCMD_set_ipv4root VC_CMD(COMPAT, 2, 3) - -/* compatibiliy vserver arguments */ - -struct vcmd_new_s_context_v1 { - uint32_t remove_cap; - uint32_t flags; -}; - -#define NB_IPV4ROOT 16 - -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]; -}; - - -#endif /* _LINUX_VIRTUAL_H */ +// $Id$ --*- c -*-- + +// Copyright (C) 2004 Enrico Scholz +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; version 2 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +#ifndef H_UTIL_VSERVER_LIB_VIRTUAL_H +#define H_UTIL_VSERVER_LIB_VIRTUAL_H + +#include +#include +#include +#include +#include +#include +#include +#include + +#endif // H_UTIL_VSERVER_LIB_VIRTUAL_H