diff options
author | Michael Brown <mcb30@ipxe.org> | 2023-11-07 13:50:15 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2023-11-07 13:51:16 +0000 |
commit | 595b1796f6dc980cf27ca3883cde3baa23655528 (patch) | |
tree | e00ed7398c4bc85b412fbfeb21f42161b33123cb /src/include | |
parent | 1bd01b761f1f33723f0b07d277863b3284dfe232 (diff) | |
download | ipxe-595b1796f6dc980cf27ca3883cde3baa23655528.tar.gz |
[eapol] Limit number of EAPoL-Start packets transmitted per attempt
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/eapol.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/eapol.h b/src/include/ipxe/eapol.h index d4ea39208..dcf392946 100644 --- a/src/include/ipxe/eapol.h +++ b/src/include/ipxe/eapol.h @@ -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 */ |