diff options
author | Michael Brown | 2023-11-07 14:50:15 +0100 |
---|---|---|
committer | Michael Brown | 2023-11-07 14:51:16 +0100 |
commit | 595b1796f6dc980cf27ca3883cde3baa23655528 (patch) | |
tree | e00ed7398c4bc85b412fbfeb21f42161b33123cb /src/include | |
parent | [eapol] Delay EAPoL-Start while waiting for EAP to complete (diff) | |
download | ipxe-595b1796f6dc980cf27ca3883cde3baa23655528.tar.gz ipxe-595b1796f6dc980cf27ca3883cde3baa23655528.tar.xz ipxe-595b1796f6dc980cf27ca3883cde3baa23655528.zip |
[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 d4ea3920..dcf39294 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 */ |