ike-cfg: add methods to match a host against configured local/remote addresses
This commit is contained in:
@@ -93,6 +93,22 @@ struct ike_cfg_t {
|
||||
*/
|
||||
host_t* (*resolve_other)(ike_cfg_t *this, int family);
|
||||
|
||||
/**
|
||||
* Check how good a host matches to the configured local address.
|
||||
*
|
||||
* @param host host to check match quality
|
||||
* @return quality of the match, 0 if not matching at all
|
||||
*/
|
||||
u_int (*match_me)(ike_cfg_t *this, host_t *host);
|
||||
|
||||
/**
|
||||
* Check how good a host matches to the configured remote address.
|
||||
*
|
||||
* @param host host to check match quality
|
||||
* @return quality of the match, 0 if not matching at all
|
||||
*/
|
||||
u_int (*match_other)(ike_cfg_t *this, host_t *host);
|
||||
|
||||
/**
|
||||
* Get own address.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user