diff options
author | Martin Willi <martin@revosec.ch> | 2010-03-24 15:28:14 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-03-25 14:29:10 +0100 |
commit | b262429e0b991ec8dbe7f7694c8f0418023f0fde (patch) | |
tree | 51012f3a4818c86cbf01b98a8d25c790274b8feb /src/libcharon/plugins/dhcp/dhcp_transaction.h | |
parent | 913eb696929d9c611cc9a85a0609c122467f696e (diff) | |
download | strongswan-b262429e0b991ec8dbe7f7694c8f0418023f0fde.tar.bz2 strongswan-b262429e0b991ec8dbe7f7694c8f0418023f0fde.tar.xz |
Include configuration payloads for DNS/WINS server received via DHCP
Diffstat (limited to 'src/libcharon/plugins/dhcp/dhcp_transaction.h')
-rw-r--r-- | src/libcharon/plugins/dhcp/dhcp_transaction.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libcharon/plugins/dhcp/dhcp_transaction.h b/src/libcharon/plugins/dhcp/dhcp_transaction.h index e20572064..19c163f88 100644 --- a/src/libcharon/plugins/dhcp/dhcp_transaction.h +++ b/src/libcharon/plugins/dhcp/dhcp_transaction.h @@ -23,6 +23,7 @@ #include <utils/host.h> #include <utils/identification.h> +#include <attributes/attributes.h> typedef struct dhcp_transaction_t dhcp_transaction_t; @@ -74,6 +75,22 @@ struct dhcp_transaction_t { host_t* (*get_server)(dhcp_transaction_t *this); /** + * An an additional attribute to serve to peer. + * + * @param type type of attribute + * @param data attribute data + */ + void (*add_attribute)(dhcp_transaction_t *this, + configuration_attribute_type_t type, chunk_t data); + + /** + * Create an enumerator over added attributes. + * + * @return enumerator over (configuration_attribute_t, chunk_t) + */ + enumerator_t* (*create_attribute_enumerator)(dhcp_transaction_t *this); + + /** * Destroy a dhcp_transaction_t. */ void (*destroy)(dhcp_transaction_t *this); |