Added setters for IKE major/minor version to ike_header

This commit is contained in:
Martin Willi
2011-01-05 16:45:46 +01:00
parent 1c22c529a7
commit 7e7c7c1d84
2 changed files with 28 additions and 0 deletions
@@ -142,6 +142,13 @@ struct ike_header_t {
*/
u_int8_t (*get_maj_version) (ike_header_t *this);
/**
* Set the major version.
*
* @param major major version
*/
void (*set_maj_version) (ike_header_t *this, u_int8_t major);
/**
* Get the minor version.
*
@@ -149,6 +156,13 @@ struct ike_header_t {
*/
u_int8_t (*get_min_version) (ike_header_t *this);
/**
* Set the minor version.
*
* @param minor minor version
*/
void (*set_min_version) (ike_header_t *this, u_int8_t minor);
/**
* Get the response flag.
*