diff options
Diffstat (limited to 'src/charon/config/traffic_selector.h')
-rw-r--r-- | src/charon/config/traffic_selector.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/charon/config/traffic_selector.h b/src/charon/config/traffic_selector.h index a9fa9d7b1..22179623a 100644 --- a/src/charon/config/traffic_selector.h +++ b/src/charon/config/traffic_selector.h @@ -191,6 +191,17 @@ struct traffic_selector_t { bool (*includes) (traffic_selector_t *this, host_t *host); /** + * Convert a traffic selector address range to a subnet + * and its net mask. + * If from and to ports of this traffic selector are equal, + * the port of the returned host_t is set to that port. + * + * @param net converted subnet (has to be freed) + * @param mask converted net mask + */ + void (*to_subnet) (traffic_selector_t *this, host_t **net, u_int8_t *mask); + + /** * Destroys the ts object */ void (*destroy) (traffic_selector_t *this); |