[eapol] Limit number of EAPoL-Start packets transmitted per attempt

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2023-11-07 13:50:15 +00:00
parent 1bd01b761f
commit 595b1796f6
2 changed files with 13 additions and 0 deletions

View File

@@ -42,11 +42,16 @@ struct eapol_supplicant {
struct eap_supplicant eap;
/** EAPoL-Start retransmission timer */
struct retry_timer timer;
/** EAPoL-Start transmission count */
unsigned int count;
};
/** Delay between EAPoL-Start packets */
#define EAPOL_START_INTERVAL ( 2 * TICKS_PER_SEC )
/** Maximum number of EAPoL-Start packets to transmit */
#define EAPOL_START_COUNT 3
/** An EAPoL handler */
struct eapol_handler {
/** Type */