Lines Matching refs:avp
233 struct ttls_avp_vendor *avp; in eap_ttls_avp_hdr() local
237 avp = (struct ttls_avp_vendor *) avphdr; in eap_ttls_avp_hdr()
241 hdrlen = sizeof(*avp); in eap_ttls_avp_hdr()
242 avp->vendor_id = host_to_be32(vendor_id); in eap_ttls_avp_hdr()
247 avp->avp_code = host_to_be32(avp_code); in eap_ttls_avp_hdr()
248 avp->avp_length = host_to_be32(((u32) flags << 24) | in eap_ttls_avp_hdr()
272 u8 *avp, *pos; in eap_ttls_avp_encapsulate() local
281 avp = wpabuf_mhead(msg); in eap_ttls_avp_encapsulate()
282 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp)); in eap_ttls_avp_encapsulate()
285 AVP_PAD(avp, pos); in eap_ttls_avp_encapsulate()
287 wpabuf_put(msg, pos - avp); in eap_ttls_avp_encapsulate()
971 struct ttls_avp *avp; in eap_ttls_parse_avp() local
976 avp = (struct ttls_avp *) pos; in eap_ttls_parse_avp()
977 avp_code = be_to_host32(avp->avp_code); in eap_ttls_parse_avp()
978 avp_length = be_to_host32(avp->avp_length); in eap_ttls_parse_avp()
992 if (avp_length < sizeof(*avp)) { in eap_ttls_parse_avp()
998 dpos = (u8 *) (avp + 1); in eap_ttls_parse_avp()
999 dlen = avp_length - sizeof(*avp); in eap_ttls_parse_avp()