traffic-selector: Add TS_SECLABEL type

This commit is contained in:
Tobias Brunner
2022-04-14 18:42:01 +02:00
parent ebb99484e3
commit d71d181d28
4 changed files with 15 additions and 4 deletions
+2
View File
@@ -388,6 +388,8 @@ static child_cfg_t* create_child_cfg(private_cmd_connection_t *this,
case TS_IPV6_ADDR_RANGE:
has_v6 = TRUE;
break;
default:
continue;
}
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:
has_v6 = TRUE;
break;
default:
continue;
}
/* inbound policy */
@@ -31,10 +31,12 @@
#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_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;
@@ -50,7 +50,12 @@ enum ts_type_t {
* (inclusive). All addresses falling between the two specified
* addresses are considered to be within the list.
*/
TS_IPV6_ADDR_RANGE = 8
TS_IPV6_ADDR_RANGE = 8,
/**
* A security label.
*/
TS_SECLABEL = 10,
};
/**