Changeset 2585

Show
Ignore:
Timestamp:
08/12/07 02:13:31 (1 year ago)
Author:
dhozac
Message:

Add network capability RAW_ICMP.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/ncaps-net.c

    r2393 r2585  
    3232 
    3333static struct Mapping_uint64 const VALUES[] = { 
    34 #warning Add the 'ncap' values here 
    35   DECL("", 0) 
     34  DECL("raw_icmp", VC_NXC_RAW_ICMP), 
    3635}; 
    3736 
  • trunk/lib/vserver.h

    r2583 r2585  
    249249 
    250250 
     251// the network capabilities 
     252#define VC_NXC_RAW_ICMP                 0x00000100ull 
     253 
     254 
    251255// the vserver specific limits 
    252256#define VC_VLIMIT_NSOCK                 16 
  • trunk/src/nattribute.c

    r2403 r2585  
    127127{ 
    128128    // TODO: generalize this 
    129   caps->ncaps = 0ull
    130   caps->cmask = 0ull
     129  caps->ncaps = VC_NXC_RAW_ICMP
     130  caps->cmask = VC_NXC_RAW_ICMP
    131131 
    132132  flags->flagword = VC_NXF_HIDE_NETIF;