git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2585
94cd875c-1c1d-0410-91d2-
eb244daf1a30
#define DECL(STR, VAL) { STR, sizeof(STR)-1, VAL }
static struct Mapping_uint64 const VALUES[] = {
-#warning Add the 'ncap' values here
- DECL("", 0)
+ DECL("raw_icmp", VC_NXC_RAW_ICMP),
};
inline static char const *
#define VC_NXF_PERSISTENT (1ULL<<38)
+// the network capabilities
+#define VC_NXC_RAW_ICMP 0x00000100ull
+
+
// the vserver specific limits
#define VC_VLIMIT_NSOCK 16
#define VC_VLIMIT_OPENFD 17
struct vc_net_caps * caps)
{
// TODO: generalize this
- caps->ncaps = 0ull;
- caps->cmask = 0ull;
+ caps->ncaps = VC_NXC_RAW_ICMP;
+ caps->cmask = VC_NXC_RAW_ICMP;
flags->flagword = VC_NXF_HIDE_NETIF;
flags->mask = VC_NXF_HIDE_NETIF;