mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 02:20:19 +03:00
[eapol] Limit number of EAPoL-Start packets transmitted per attempt
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user