X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2Fcharon%2Fconfig%2Ftraffic_selector.h;h=0e798fc6aab73419e6bda8c689fc29b00f001c98;hp=33152b0081270eec6323acbe493c2fd660fc6b7f;hb=17712ea86644c1d40b4492a3240534bde7608c06;hpb=0c8aba6771a8c1ed1130f1ff3df63fd00d5c054b diff --git a/src/charon/config/traffic_selector.h b/src/charon/config/traffic_selector.h index 33152b0..0e798fc 100644 --- a/src/charon/config/traffic_selector.h +++ b/src/charon/config/traffic_selector.h @@ -192,6 +192,17 @@ struct traffic_selector_t { * @return pointer to a string. */ bool (*equals) (traffic_selector_t *this, traffic_selector_t *other); + + /** + * @brief Check if a traffic selector is contained completly in another. + * + * contains() allows to check if multiple traffic selectors are redundant. + * + * @param this ts that is contained in another + * @param other ts that contains this + * @return TRUE if other contains this completly, FALSE otherwise + */ + bool (*is_contained_in) (traffic_selector_t *this, traffic_selector_t *other); /** * @brief Check if a specific host is included in the address range of