|
Chris PeBenito |
cf6141 |
#
|
|
Chris PeBenito |
cf6141 |
# shiftn(num,list...)
|
|
Chris PeBenito |
cf6141 |
#
|
|
Chris PeBenito |
cf6141 |
# shift the list num times
|
|
Chris PeBenito |
cf6141 |
#
|
|
Chris PeBenito |
cf6141 |
define(`shiftn',`ifelse($1,0,`shift($*)',`shiftn(decr($1),shift(shift($*)))')')
|
|
Chris PeBenito |
cf6141 |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
# Network Interface generated macros
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
define(`create_netif_interfaces',``
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive TCP network traffic on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_tcp_sendrecv_$1_if',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:netif { tcp_send tcp_recv };
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send UDP network traffic on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_udp_send_$1_if',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:netif udp_send;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Receive UDP network traffic on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="read" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_udp_receive_$1_if',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:netif udp_recv;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive UDP network traffic on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_udp_sendrecv_$1_if',`
|
|
Chris PeBenito |
a39525 |
corenet_udp_send_$1_if(dollarsone)
|
|
Chris PeBenito |
a39525 |
corenet_udp_receive_$1_if(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send raw IP packets on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_raw_send_$1_if',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:netif rawip_send;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Receive raw IP packets on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="read" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_raw_receive_$1_if',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:netif rawip_recv;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive raw IP packets on the $1 interface.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
interface(`corenet_raw_sendrecv_$1_if',`
|
|
Chris PeBenito |
b19257 |
corenet_raw_send_$1_if(dollarsone)
|
|
Chris PeBenito |
b19257 |
corenet_raw_receive_$1_if(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
'') dnl end create_netif_interfaces
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
# Network node generated macros
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
define(`create_node_interfaces',``
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive TCP traffic on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_tcp_sendrecv_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:node { tcp_send tcp_recv };
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send UDP traffic on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_send_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:node udp_send;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Receive UDP traffic on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="read" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_receive_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:node udp_recv;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive UDP traffic on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_sendrecv_$1_node',`
|
|
Chris PeBenito |
f2e4ab |
corenet_udp_send_$1_node(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
corenet_udp_receive_$1_node(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send raw IP packets on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_raw_send_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:node rawip_send;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Receive raw IP packets on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_raw_receive_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:node rawip_recv;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive raw IP packets on the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_raw_sendrecv_$1_node',`
|
|
Chris PeBenito |
f2e4ab |
corenet_raw_send_$1_node(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
corenet_raw_receive_$1_node(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Bind TCP sockets to node $1.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="none"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_tcp_bind_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:tcp_socket node_bind;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Bind UDP sockets to the $1 node.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="none"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_bind_$1_node',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:udp_socket node_bind;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
'') dnl end create_node_interfaces
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
# Network port generated macros
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
define(`create_port_interfaces',``
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive TCP traffic on the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_tcp_sendrecv_$1_port',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:tcp_socket { send_msg recv_msg };
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send UDP traffic on the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_send_$1_port',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:udp_socket send_msg;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Do not audit attempts to send UDP traffic on the $1 port.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## <param name="domain">
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Domain to not audit.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## </param>
|
|
Chris PeBenito |
bf469d |
## <infoflow type="none"/>
|
|
Chris PeBenito |
bf469d |
#
|
|
Chris PeBenito |
bf469d |
interface(`corenet_dontaudit_udp_send_$1_port',`
|
|
Chris PeBenito |
bf469d |
gen_require(`
|
|
Chris PeBenito |
bf469d |
$3 $1_$2;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
dontaudit dollarsone $1_$2:udp_socket send_msg;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
########################################
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Receive UDP traffic on the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="read" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_receive_$1_port',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:udp_socket recv_msg;
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Do not audit attempts to receive UDP traffic on the $1 port.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## <param name="domain">
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Domain to not audit.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## </param>
|
|
Chris PeBenito |
bf469d |
## <infoflow type="none"/>
|
|
Chris PeBenito |
bf469d |
#
|
|
Chris PeBenito |
bf469d |
interface(`corenet_dontaudit_udp_receive_$1_port',`
|
|
Chris PeBenito |
bf469d |
gen_require(`
|
|
Chris PeBenito |
bf469d |
$3 $1_$2;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
dontaudit dollarsone $1_$2:udp_socket recv_msg;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
########################################
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Send and receive UDP traffic on the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_sendrecv_$1_port',`
|
|
Chris PeBenito |
f2e4ab |
corenet_udp_send_$1_port(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
corenet_udp_receive_$1_port(dollarsone)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Do not audit attempts to send and receive
|
|
Chris PeBenito |
bf469d |
## UDP traffic on the $1 port.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## <param name="domain">
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Domain to not audit.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## </param>
|
|
Chris PeBenito |
bf469d |
## <infoflow type="none"/>
|
|
Chris PeBenito |
bf469d |
#
|
|
Chris PeBenito |
bf469d |
interface(`corenet_dontaudit_udp_sendrecv_$1_port',`
|
|
Chris PeBenito |
bf469d |
corenet_dontaudit_udp_send_$1_port(dollarsone)
|
|
Chris PeBenito |
bf469d |
corenet_dontaudit_udp_receive_$1_port(dollarsone)
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
########################################
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Bind TCP sockets to the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="none"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_tcp_bind_$1_port',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
022f61 |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:tcp_socket name_bind;
|
|
Chris PeBenito |
b7b1d2 |
$4
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
414e41 |
## Bind UDP sockets to the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
414e41 |
## </param>
|
|
Chris PeBenito |
414e41 |
## <infoflow type="none"/>
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
199895 |
interface(`corenet_udp_bind_$1_port',`
|
|
Chris PeBenito |
bc1fba |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
bc1fba |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:udp_socket name_bind;
|
|
Chris PeBenito |
b7b1d2 |
$4
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
022f61 |
|
|
Chris PeBenito |
022f61 |
########################################
|
|
Chris PeBenito |
022f61 |
## <summary>
|
|
Chris PeBenito |
022f61 |
## Make a TCP connection to the $1 port.
|
|
Chris PeBenito |
022f61 |
## </summary>
|
|
Chris PeBenito |
022f61 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
022f61 |
## </param>
|
|
Chris PeBenito |
022f61 |
#
|
|
Chris PeBenito |
022f61 |
interface(`corenet_tcp_connect_$1_port',`
|
|
Chris PeBenito |
022f61 |
gen_require(`
|
|
Chris PeBenito |
b7b1d2 |
$3 $1_$2;
|
|
Chris PeBenito |
022f61 |
')
|
|
Chris PeBenito |
022f61 |
|
|
Chris PeBenito |
b7b1d2 |
allow dollarsone $1_$2:tcp_socket name_connect;
|
|
Chris PeBenito |
022f61 |
')
|
|
Chris PeBenito |
f2e4ab |
'') dnl end create_port_interfaces
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
e37158 |
define(`create_packet_interfaces',``
|
|
Chris PeBenito |
e37158 |
########################################
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Send $1 packets.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## <param name="domain">
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## </param>
|
|
Chris PeBenito |
e37158 |
## <infoflow type="write" weight="10"/>
|
|
Chris PeBenito |
e37158 |
#
|
|
Chris PeBenito |
e37158 |
interface(`corenet_send_$1_packets',`
|
|
Chris PeBenito |
e37158 |
gen_require(`
|
|
Chris PeBenito |
6293ba |
type $1_packet_t;
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
allow dollarsone $1_packet_t:packet send;
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
########################################
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Do not audit attempts to send $1 packets.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## <param name="domain">
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Domain to not audit.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## </param>
|
|
Chris PeBenito |
bf469d |
## <infoflow type="none"/>
|
|
Chris PeBenito |
bf469d |
#
|
|
Chris PeBenito |
bf469d |
interface(`corenet_dontaudit_send_$1_packets',`
|
|
Chris PeBenito |
bf469d |
gen_require(`
|
|
Chris PeBenito |
bf469d |
type $1_packet_t;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
dontaudit dollarsone $1_packet_t:packet send;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
########################################
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Receive $1 packets.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## <param name="domain">
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## </param>
|
|
Chris PeBenito |
e37158 |
## <infoflow type="read" weight="10"/>
|
|
Chris PeBenito |
e37158 |
#
|
|
Chris PeBenito |
e37158 |
interface(`corenet_receive_$1_packets',`
|
|
Chris PeBenito |
e37158 |
gen_require(`
|
|
Chris PeBenito |
6293ba |
type $1_packet_t;
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
allow dollarsone $1_packet_t:packet recv;
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
########################################
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Do not audit attempts to receive $1 packets.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## <param name="domain">
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Domain allowed access.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## </param>
|
|
Chris PeBenito |
bf469d |
## <infoflow type="none"/>
|
|
Chris PeBenito |
bf469d |
#
|
|
Chris PeBenito |
bf469d |
interface(`corenet_dontaudit_receive_$1_packets',`
|
|
Chris PeBenito |
bf469d |
gen_require(`
|
|
Chris PeBenito |
bf469d |
type $1_packet_t;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
dontaudit dollarsone $1_packet_t:packet recv;
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
########################################
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Send and receive $1 packets.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## <param name="domain">
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## </param>
|
|
Chris PeBenito |
e37158 |
## <infoflow type="both" weight="10"/>
|
|
Chris PeBenito |
e37158 |
#
|
|
Chris PeBenito |
e37158 |
interface(`corenet_sendrecv_$1_packets',`
|
|
Chris PeBenito |
e37158 |
corenet_send_$1_packets(dollarsone)
|
|
Chris PeBenito |
e37158 |
corenet_receive_$1_packets(dollarsone)
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
########################################
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Do not audit attempts to send and receive $1 packets.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## <param name="domain">
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
bf469d |
## Domain to not audit.
|
|
Chris PeBenito |
bf469d |
## </summary>
|
|
Chris PeBenito |
bf469d |
## </param>
|
|
Chris PeBenito |
bf469d |
## <infoflow type="none"/>
|
|
Chris PeBenito |
bf469d |
#
|
|
Chris PeBenito |
bf469d |
interface(`corenet_dontaudit_sendrecv_$1_packets',`
|
|
Chris PeBenito |
bf469d |
corenet_dontaudit_send_$1_packets(dollarsone)
|
|
Chris PeBenito |
bf469d |
corenet_dontaudit_receive_$1_packets(dollarsone)
|
|
Chris PeBenito |
bf469d |
')
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
bf469d |
########################################
|
|
Chris PeBenito |
bf469d |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Relabel packets to $1 the packet type.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## <param name="domain">
|
|
Chris PeBenito |
e37158 |
## <summary>
|
|
Chris PeBenito |
e37158 |
## Domain allowed access.
|
|
Chris PeBenito |
e37158 |
## </summary>
|
|
Chris PeBenito |
e37158 |
## </param>
|
|
Chris PeBenito |
e37158 |
#
|
|
Chris PeBenito |
e37158 |
interface(`corenet_relabelto_$1_packets',`
|
|
Chris PeBenito |
e37158 |
gen_require(`
|
|
Chris PeBenito |
6293ba |
type $1_packet_t;
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
allow dollarsone $1_packet_t:packet relabelto;
|
|
Chris PeBenito |
e37158 |
')
|
|
Chris PeBenito |
e37158 |
'') dnl end create_port_interfaces
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
# create_netif_*_interfaces(linux_interfacename)
|
|
Chris PeBenito |
b7b1d2 |
#
|
|
Chris PeBenito |
b7b1d2 |
define(`create_netif_type_interfaces',`
|
|
Chris PeBenito |
b7b1d2 |
create_netif_interfaces($1,netif_t,type)
|
|
Chris PeBenito |
b7b1d2 |
')
|
|
Chris PeBenito |
b7b1d2 |
define(`create_netif_attrib_interfaces',`
|
|
Chris PeBenito |
b7b1d2 |
create_netif_interfaces($1,netif,attribute)
|
|
Chris PeBenito |
b7b1d2 |
')
|
|
Chris PeBenito |
b7b1d2 |
|
|
Chris PeBenito |
b7b1d2 |
#
|
|
Chris PeBenito |
f2e4ab |
# network_interface(linux_interfacename,mls_sensitivity)
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
define(`network_interface',`
|
|
Chris PeBenito |
b7b1d2 |
create_netif_type_interfaces($1)
|
|
Chris PeBenito |
b7b1d2 |
')
|
|
Chris PeBenito |
b7b1d2 |
|
|
Chris PeBenito |
b7b1d2 |
#
|
|
Chris PeBenito |
b7b1d2 |
# create_node_*_interfaces(node_name)
|
|
Chris PeBenito |
b7b1d2 |
#
|
|
Chris PeBenito |
b7b1d2 |
define(`create_node_type_interfaces',`
|
|
Chris PeBenito |
b7b1d2 |
create_node_interfaces($1,node_t,type)
|
|
Chris PeBenito |
b7b1d2 |
')
|
|
Chris PeBenito |
b7b1d2 |
define(`create_node_attrib_interfaces',`
|
|
Chris PeBenito |
b7b1d2 |
create_node_interfaces($1,node,attribute)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
# network_node(node_name,mls_sensitivity,address,netmask)
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
define(`network_node',`
|
|
Chris PeBenito |
b7b1d2 |
create_node_type_interfaces($1)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
# These next three macros have formatting, and should not me indented
|
|
Chris PeBenito |
f2e4ab |
define(`determine_reserved_capability',`dnl
|
|
Chris PeBenito |
b7b1d2 |
ifelse($2,`',`',`dnl
|
|
Chris PeBenito |
f2e4ab |
ifelse(eval($2 < 1024),1,``allow' dollarsone self:capability net_bind_service;',`dnl
|
|
Chris PeBenito |
b7b1d2 |
determine_reserved_capability(shiftn(3,$*))dnl
|
|
Chris PeBenito |
b7b1d2 |
')dnl end inner ifelse
|
|
Chris PeBenito |
f2e4ab |
')dnl end outer ifelse
|
|
Chris PeBenito |
f2e4ab |
') dnl end determine reserved capability
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
b7b1d2 |
#
|
|
Chris PeBenito |
b7b1d2 |
# create_port_*_interfaces(port_name, protocol,portnum,mls_sensitivity [,protocol portnum mls_sensitivity[,...]])
|
|
Chris PeBenito |
b7b1d2 |
# (these wrap create_port_interfaces to handle attributes and types)
|
|
Chris PeBenito |
b7b1d2 |
define(`create_port_type_interfaces',`create_port_interfaces($1,port_t,type,determine_reserved_capability(shift($*)))')
|
|
Chris PeBenito |
b7b1d2 |
define(`create_port_attrib_interfaces',`create_port_interfaces($1,port,attribute,determine_reserved_capability(shift($*)))')
|
|
Chris PeBenito |
f2e4ab |
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
b7b1d2 |
# network_port(port_name,protocol portnum mls_sensitivity [,protocol,portnum,mls_sensitivity[,...]])
|
|
Chris PeBenito |
f2e4ab |
#
|
|
Chris PeBenito |
f2e4ab |
define(`network_port',`
|
|
Chris PeBenito |
b7b1d2 |
create_port_type_interfaces($*)
|
|
Chris PeBenito |
c89024 |
create_packet_interfaces($1_client)
|
|
Chris PeBenito |
c89024 |
create_packet_interfaces($1_server)
|
|
Chris PeBenito |
f2e4ab |
')
|
|
Chris PeBenito |
e37158 |
|
|
Chris PeBenito |
e37158 |
#
|
|
Chris PeBenito |
e37158 |
# network_packet(packet_name)
|
|
Chris PeBenito |
e37158 |
#
|
|
Chris PeBenito |
e37158 |
define(`network_packet',`
|
|
Chris PeBenito |
e37158 |
create_packet_interfaces($1_client)
|
|
Chris PeBenito |
e37158 |
create_packet_interfaces($1_server)
|
|
Chris PeBenito |
e37158 |
')
|