/daten/src/linux-2.4.27-rsbac-v1.2.3/include/rsbac/network_types.h File Reference

Go to the source code of this file.

Data Structures

struct  rsbac_net_temp_data_t
struct  rsbac_net_description_t
union  rsbac_net_temp_syscall_data_t

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_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 209 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 203 of file network_types.h.

Referenced by get_target_name().

#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_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 133 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_ALL_ID   ((rsbac_net_temp_id_t) -1)
 

Definition at line 132 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_AUTO_ADDRESS   "0.0.0.0"
 

Definition at line 102 of file network_types.h.

Referenced by rsbac_do_init().

#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 103 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_AUTO_ID   100105
 

Definition at line 101 of file network_types.h.

Referenced by rsbac_do_init().

#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 39 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 118 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_INET_ID   100110
 

Definition at line 117 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_KEY   0x815affe
 

Definition at line 16 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_LAN_ADDRESS   "192.168.0.0"
 

Definition at line 85 of file network_types.h.

Referenced by rsbac_do_init().

#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 86 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_LAN_ID   100102
 

Definition at line 84 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_LNET_ADDRESS   "127.0.0.0"
 

Definition at line 69 of file network_types.h.

Referenced by rsbac_do_init().

#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 70 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_LNET_ID   100101
 

Definition at line 68 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_NAME   "nettemp"
 

Definition at line 17 of file network_types.h.

Referenced by rsbac_do_init().

#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 54 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_UNIX_ID   100010
 

Definition at line 53 of file network_types.h.

Referenced by rsbac_do_init().

#define RSBAC_NET_TEMP_VERSION   1
 

Definition at line 15 of file network_types.h.

Referenced by rsbac_do_init().

#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.

Referenced by rsbac_acl_get_rights(), rsbac_acl_get_single_right(), rsbac_check_acl(), rsbac_do_init(), rsbac_get_attr(), rsbac_init_acl(), rsbac_set_attr(), sys_rsbac_net_list_all_template(), and sys_rsbac_net_template().


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 157 of file network_types.h.

Referenced by rsbac_get_net_temp_syscall_nr().


Generated on Tue Aug 31 10:05:27 2004 for RSBAC by doxygen 1.3.8