eapol: Add eapol_tx_frame

Allow other files to send EAPoL frames.
This commit is contained in:
Andrew Zaborowski 2017-09-07 23:04:46 +02:00 committed by Denis Kenzior
parent f05c3c30d1
commit 6be08a3604
2 changed files with 8 additions and 0 deletions

View File

@ -1786,6 +1786,12 @@ bool eapol_frame_watch_remove(uint32_t id)
return watchlist_remove(&frame_watches, id);
}
void eapol_tx_frame(uint32_t ifindex, uint16_t proto, const uint8_t *dst,
const struct eapol_frame *frame)
{
pae_write(ifindex, dst, NULL, proto, frame);
}
struct preauth_sm {
uint32_t ifindex;
uint8_t aa[6];

View File

@ -197,6 +197,8 @@ uint32_t eapol_frame_watch_add(uint32_t ifindex,
eapol_frame_watch_func_t handler,
void *user_data);
bool eapol_frame_watch_remove(uint32_t id);
void eapol_tx_frame(uint32_t ifindex, uint16_t proto, const uint8_t *dst,
const struct eapol_frame *frame);
struct preauth_sm *eapol_preauth_start(const uint8_t *aa,
const struct handshake_state *hs,