20 const struct wpabuf *msg,
size_t *plen);
22 u8 code, u8 identifier);
26 int erp_parse_tlvs(
const u8 *pos,
const u8 *end,
struct erp_tlvs *tlvs,
struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len, u8 code, u8 identifier)
Allocate a buffer for an EAP message.
Definition: eap_common.c:124
EapType eap_get_type(const struct wpabuf *msg)
Get EAP Type from wpabuf.
Definition: eap_common.c:195
void eap_update_len(struct wpabuf *msg)
Update EAP header length.
Definition: eap_common.c:163
const u8 * eap_hdr_validate(int vendor, EapType eap_type, const struct wpabuf *msg, size_t *plen)
Validate EAP header.
Definition: eap_common.c:62
u8 eap_get_id(const struct wpabuf *msg)
Get EAP Identifier from wpabuf.
Definition: eap_common.c:178
Definition: eap_common.h:10
int eap_hdr_len_valid(const struct wpabuf *msg, size_t min_payload)
Validate EAP header length field.
Definition: eap_common.c:21