Setter for src and destination address of ipsec_sa_t added

This commit is contained in:
Tobias Brunner
2012-10-16 14:16:17 +02:00
parent 5b88d80f22
commit 7622c5e97e
2 changed files with 30 additions and 0 deletions
+14
View File
@@ -51,6 +51,20 @@ struct ipsec_sa_t {
*/
host_t *(*get_destination)(ipsec_sa_t *this);
/**
* Set the source address for this SA
*
* @param addr source address of this SA (gets cloned)
*/
void (*set_source)(ipsec_sa_t *this, host_t *addr);
/**
* Set the destination address for this SA
*
* @param addr destination address of this SA (gets cloned)
*/
void (*set_destination)(ipsec_sa_t *this, host_t *addr);
/**
* Get the SPI for this SA
*