traffic-selector: Add TS_SECLABEL type
This commit is contained in:
@@ -388,6 +388,8 @@ static child_cfg_t* create_child_cfg(private_cmd_connection_t *this,
|
|||||||
case TS_IPV6_ADDR_RANGE:
|
case TS_IPV6_ADDR_RANGE:
|
||||||
has_v6 = TRUE;
|
has_v6 = TRUE;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
child_cfg->add_traffic_selector(child_cfg, FALSE, ts);
|
child_cfg->add_traffic_selector(child_cfg, FALSE, ts);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -820,6 +820,8 @@ static bool install_sps(private_kernel_wfp_ipsec_t *this,
|
|||||||
case TS_IPV6_ADDR_RANGE:
|
case TS_IPV6_ADDR_RANGE:
|
||||||
has_v6 = TRUE;
|
has_v6 = TRUE;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* inbound policy */
|
/* inbound policy */
|
||||||
|
|||||||
@@ -31,10 +31,12 @@
|
|||||||
|
|
||||||
#define NON_SUBNET_ADDRESS_RANGE 255
|
#define NON_SUBNET_ADDRESS_RANGE 255
|
||||||
|
|
||||||
ENUM(ts_type_name, TS_IPV4_ADDR_RANGE, TS_IPV6_ADDR_RANGE,
|
ENUM_BEGIN(ts_type_name, TS_IPV4_ADDR_RANGE, TS_IPV6_ADDR_RANGE,
|
||||||
"TS_IPV4_ADDR_RANGE",
|
"TS_IPV4_ADDR_RANGE",
|
||||||
"TS_IPV6_ADDR_RANGE",
|
"TS_IPV6_ADDR_RANGE");
|
||||||
);
|
ENUM_NEXT(ts_type_name, TS_SECLABEL, TS_SECLABEL, TS_IPV6_ADDR_RANGE,
|
||||||
|
"TS_SECLABEL");
|
||||||
|
ENUM_END(ts_type_name, TS_SECLABEL);
|
||||||
|
|
||||||
typedef struct private_traffic_selector_t private_traffic_selector_t;
|
typedef struct private_traffic_selector_t private_traffic_selector_t;
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,12 @@ enum ts_type_t {
|
|||||||
* (inclusive). All addresses falling between the two specified
|
* (inclusive). All addresses falling between the two specified
|
||||||
* addresses are considered to be within the list.
|
* addresses are considered to be within the list.
|
||||||
*/
|
*/
|
||||||
TS_IPV6_ADDR_RANGE = 8
|
TS_IPV6_ADDR_RANGE = 8,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A security label.
|
||||||
|
*/
|
||||||
|
TS_SECLABEL = 10,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user