network_types.h File Reference

Go to the source code of this file.

Defines

#define RSBAC_NET_ANY   0
#define RSBAC_NET_UNKNOWN   0
#define RSBAC_NET_TEMP_VERSION   1
#define RSBAC_NET_TEMP_KEY   0x815affe
#define RSBAC_NET_TEMP_NAME   "nettemp"
#define RSBAC_NET_MAX_ADDRESS_LEN   128
#define RSBAC_NET_TEMP_NAMELEN   16
#define RSBAC_NET_MAX_PORT   65535
#define RSBAC_NET_TEMP_DEFAULT_DATA
#define RSBAC_NET_TEMP_UNIX_ID   100010
#define RSBAC_NET_TEMP_UNIX_DATA
#define RSBAC_NET_TEMP_LNET_ID   100101
#define RSBAC_NET_TEMP_LNET_ADDRESS   "127.0.0.0"
#define RSBAC_NET_TEMP_LNET_DATA
#define RSBAC_NET_TEMP_LAN_ID   100102
#define RSBAC_NET_TEMP_LAN_ADDRESS   "192.168.0.0"
#define RSBAC_NET_TEMP_LAN_DATA
#define RSBAC_NET_TEMP_AUTO_ID   100105
#define RSBAC_NET_TEMP_AUTO_ADDRESS   "0.0.0.0"
#define RSBAC_NET_TEMP_AUTO_DATA
#define RSBAC_NET_TEMP_INET_ID   100110
#define RSBAC_NET_TEMP_INET_DATA
#define RSBAC_NET_TEMP_ALL_ID   ((rsbac_net_temp_id_t) -1)
#define RSBAC_NET_TEMP_ALL_DATA
#define NIPQUAD(addr)
#define HIPQUAD(addr)

Typedefs

typedef __u32 rsbac_net_temp_id_t

Enumerations

enum  rsbac_net_temp_syscall_t {
  NTS_new_template, NTS_copy_template, NTS_delete_template, NTS_check_id,
  NTS_get_address, NTS_get_address_family, NTS_get_valid_len, NTS_get_type,
  NTS_get_protocol, NTS_get_netdev, NTS_get_min_port, NTS_get_max_port,
  NTS_get_name, NTS_set_address, NTS_set_address_family, NTS_set_valid_len,
  NTS_set_type, NTS_set_protocol, NTS_set_netdev, NTS_set_min_port,
  NTS_set_max_port, NTS_set_name, NTS_none
}


Define Documentation

#define HIPQUAD addr   ) 
 

Value:

((unsigned char *)&addr)[3], \
        ((unsigned char *)&addr)[2], \
        ((unsigned char *)&addr)[1], \
        ((unsigned char *)&addr)[0]

Definition at line 211 of file network_types.h.

#define NIPQUAD addr   ) 
 

Value:

((unsigned char *)&addr)[0], \
        ((unsigned char *)&addr)[1], \
        ((unsigned char *)&addr)[2], \
        ((unsigned char *)&addr)[3]

Definition at line 205 of file network_types.h.

Referenced by get_target_name(), and rsbac_adf_request_int().

#define RSBAC_NET_ANY   0
 

Definition at line 12 of file network_types.h.

#define RSBAC_NET_MAX_ADDRESS_LEN   128
 

Definition at line 21 of file network_types.h.

#define RSBAC_NET_MAX_PORT   65535
 

Definition at line 24 of file network_types.h.

#define RSBAC_NET_TEMP_ALL_DATA
 

Value:

{ \
    "",            /* address (not used, no family) */ \
    RSBAC_NET_ANY, /* family */ \
    0,             /* valid_len (match any) */ \
    RSBAC_NET_ANY, /* type */ \
    RSBAC_NET_ANY, /* protocol */ \
    "",            /* netdev (any) */ \
    0,             /* min_port */ \
    65535,         /* max_port */ \
    "ALL" /* name */ \
  }

Definition at line 135 of file network_types.h.

#define RSBAC_NET_TEMP_ALL_ID   ((rsbac_net_temp_id_t) -1)
 

Definition at line 134 of file network_types.h.

#define RSBAC_NET_TEMP_AUTO_ADDRESS   "0.0.0.0"
 

Definition at line 104 of file network_types.h.

#define RSBAC_NET_TEMP_AUTO_DATA
 

Value:

{ \
    "",            /* address filled in init code - do not enter dot-notation here! */ \
    AF_INET,       /* family */ \
    32,            /* valid_len */ \
    RSBAC_NET_ANY, /* type */ \
    RSBAC_NET_ANY, /* protocol */ \
    "",            /* netdev (any) */ \
    0,             /* min_port */ \
    65535,         /* max_port */ \
    "Auto-IPv4"    /* name */ \
  }

Definition at line 105 of file network_types.h.

#define RSBAC_NET_TEMP_AUTO_ID   100105
 

Definition at line 103 of file network_types.h.

#define RSBAC_NET_TEMP_DEFAULT_DATA
 

Value:

{ \
    "",      /* address (not used, because len=0) */ \
    AF_MAX,  /* impossible family */ \
    0,       /* valid_len (match any) */ \
    RSBAC_NET_ANY, /* type (not used) */ \
    RSBAC_NET_ANY, /* protocol (not used) */ \
    "",      /* netdev (not used) */ \
    0,       /* min_port (not used) */ \
    0,       /* max_port (not used) */ \
    "DEFAULT" /* name */ \
  }

Definition at line 41 of file network_types.h.

#define RSBAC_NET_TEMP_INET_DATA
 

Value:

{ \
    "",            /* address (not used, because len=0) */ \
    AF_INET,       /* family */ \
    0,             /* valid_len (match any) */ \
    RSBAC_NET_ANY, /* type */ \
    RSBAC_NET_ANY, /* protocol */ \
    "",            /* netdev (any) */ \
    0,             /* min_port */ \
    65535,         /* max_port */ \
    "AF_INET" /* name */ \
  }

Definition at line 120 of file network_types.h.

#define RSBAC_NET_TEMP_INET_ID   100110
 

Definition at line 119 of file network_types.h.

#define RSBAC_NET_TEMP_KEY   0x815affe
 

Definition at line 16 of file network_types.h.

#define RSBAC_NET_TEMP_LAN_ADDRESS   "192.168.0.0"
 

Definition at line 87 of file network_types.h.

#define RSBAC_NET_TEMP_LAN_DATA
 

Value:

{ \
    "",            /* address filled in init code - do not enter dot-notation here! */ \
    AF_INET,       /* family */ \
    16,            /* valid_len */ \
    RSBAC_NET_ANY, /* type */ \
    RSBAC_NET_ANY, /* protocol */ \
    "",            /* netdev (any) */ \
    0,             /* min_port */ \
    65535,         /* max_port */ \
    "Internal LAN" /* name */ \
  }

Definition at line 88 of file network_types.h.

#define RSBAC_NET_TEMP_LAN_ID   100102
 

Definition at line 86 of file network_types.h.

#define RSBAC_NET_TEMP_LNET_ADDRESS   "127.0.0.0"
 

Definition at line 71 of file network_types.h.

#define RSBAC_NET_TEMP_LNET_DATA
 

Value:

{ \
    "",            /* address filled in init code - do not enter dot-notation here! */ \
    AF_INET,       /* family */ \
    8,             /* valid_len */ \
    RSBAC_NET_ANY, /* type */ \
    RSBAC_NET_ANY, /* protocol */ \
    "",            /* netdev (any) */ \
    0,             /* min_port */ \
    65535,         /* max_port */ \
    "localnet"     /* name */ \
  }

Definition at line 72 of file network_types.h.

#define RSBAC_NET_TEMP_LNET_ID   100101
 

Definition at line 70 of file network_types.h.

#define RSBAC_NET_TEMP_NAME   "nettemp"
 

Definition at line 17 of file network_types.h.

#define RSBAC_NET_TEMP_NAMELEN   16
 

Definition at line 22 of file network_types.h.

#define RSBAC_NET_TEMP_UNIX_DATA
 

Value:

{ \
    "",      /* address (not used, because len=0) */ \
    AF_UNIX, /* family */ \
    0,       /* valid_len (match any) */ \
    0,       /* type (not used) */ \
    0,       /* protocol (not used) */ \
    "",      /* netdev (not used) */ \
    0,       /* min_port (not used) */ \
    0,       /* max_port (not used) */ \
    "AF_UNIX" /* name */ \
  }

Definition at line 56 of file network_types.h.

#define RSBAC_NET_TEMP_UNIX_ID   100010
 

Definition at line 55 of file network_types.h.

#define RSBAC_NET_TEMP_VERSION   1
 

Definition at line 15 of file network_types.h.

#define RSBAC_NET_UNKNOWN   0
 

Definition at line 13 of file network_types.h.


Typedef Documentation

typedef __u32 rsbac_net_temp_id_t
 

Definition at line 19 of file network_types.h.


Enumeration Type Documentation

enum rsbac_net_temp_syscall_t
 

Enumeration values:
NTS_new_template 
NTS_copy_template 
NTS_delete_template 
NTS_check_id 
NTS_get_address 
NTS_get_address_family 
NTS_get_valid_len 
NTS_get_type 
NTS_get_protocol 
NTS_get_netdev 
NTS_get_min_port 
NTS_get_max_port 
NTS_get_name 
NTS_set_address 
NTS_set_address_family 
NTS_set_valid_len 
NTS_set_type 
NTS_set_protocol 
NTS_set_netdev 
NTS_set_min_port 
NTS_set_max_port 
NTS_set_name 
NTS_none 

Definition at line 159 of file network_types.h.


Generated on Sun May 21 14:30:59 2006 for RSBAC by  doxygen 1.4.2