aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_ikev2.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-19 02:28:53 (GMT)
committerJouni Malinen <j@w1.fi>2010-07-21 05:56:10 (GMT)
commit7f6ec672ea429cc02bbe5532f3cc9e8892adb00c (patch)
treef5a542d82da9ea32d94d58a4ec707787d025de02 /src/eap_server/eap_server_ikev2.c
parentf3a3e6987e2201e17cdb244e166b62325f99eb7d (diff)
downloadhostap-7f6ec672ea429cc02bbe5532f3cc9e8892adb00c.zip
hostap-7f6ec672ea429cc02bbe5532f3cc9e8892adb00c.tar.gz
hostap-7f6ec672ea429cc02bbe5532f3cc9e8892adb00c.tar.bz2
EAP server: Add support for configuring fragment size
Diffstat (limited to 'src/eap_server/eap_server_ikev2.c')
-rw-r--r--src/eap_server/eap_server_ikev2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_ikev2.c b/src/eap_server/eap_server_ikev2.c
index 06074ee..ec4fa87 100644
--- a/src/eap_server/eap_server_ikev2.c
+++ b/src/eap_server/eap_server_ikev2.c
@@ -93,7 +93,8 @@ static void * eap_ikev2_init(struct eap_sm *sm)
if (data == NULL)
return NULL;
data->state = MSG;
- data->fragment_size = IKEV2_FRAGMENT_SIZE;
+ data->fragment_size = sm->fragment_size > 0 ? sm->fragment_size :
+ IKEV2_FRAGMENT_SIZE;
data->ikev2.state = SA_INIT;
data->ikev2.peer_auth = PEER_AUTH_SECRET;
data->ikev2.key_pad = (u8 *) os_strdup("Key Pad for EAP-IKEv2");