EAP server: Add support for configuring fragment size

This commit is contained in:
Jouni Malinen 2010-07-18 19:28:53 -07:00 committed by Jouni Malinen
parent f3a3e6987e
commit 7f6ec672ea
13 changed files with 22 additions and 5 deletions

View file

@ -91,7 +91,8 @@ static void * eap_tnc_init(struct eap_sm *sm)
return NULL;
}
data->fragment_size = 1300;
data->fragment_size = sm->fragment_size > 100 ?
sm->fragment_size - 98 : 1300;
return data;
}