Lines Matching refs:avp_length
248 avp->avp_length = host_to_be32(((u32) flags << 24) | in eap_ttls_avp_hdr()
972 u32 avp_code, avp_length, vendor_id = 0; in eap_ttls_parse_avp() local
978 avp_length = be_to_host32(avp->avp_length); in eap_ttls_parse_avp()
979 avp_flags = (avp_length >> 24) & 0xff; in eap_ttls_parse_avp()
980 avp_length &= 0xffffff; in eap_ttls_parse_avp()
983 (int) avp_length); in eap_ttls_parse_avp()
985 if (avp_length > left) { in eap_ttls_parse_avp()
988 (int) avp_length, (unsigned long) left); in eap_ttls_parse_avp()
992 if (avp_length < sizeof(*avp)) { in eap_ttls_parse_avp()
994 avp_length); in eap_ttls_parse_avp()
999 dlen = avp_length - sizeof(*avp); in eap_ttls_parse_avp()
1051 return avp_length; in eap_ttls_parse_avp()
1060 int avp_length; in eap_ttls_parse_avps() local
1077 avp_length = eap_ttls_parse_avp(pos, left, parse); in eap_ttls_parse_avps()
1078 if (avp_length < 0) in eap_ttls_parse_avps()
1081 pad = (4 - (avp_length & 3)) & 3; in eap_ttls_parse_avps()
1082 pos += avp_length + pad; in eap_ttls_parse_avps()
1083 if (left < avp_length + pad) in eap_ttls_parse_avps()
1086 left -= avp_length + pad; in eap_ttls_parse_avps()