/freebsd-10.1-release/contrib/wpa/src/eap_common/ |
H A D | eap_fast_common.c | 176 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, argument 183 if (tlv->eap_payload_tlv) { 186 tlv->iresult = EAP_TLV_RESULT_FAILURE; 189 tlv->eap_payload_tlv = pos; 190 tlv->eap_payload_tlv_len = len; 194 if (tlv->result) { 197 tlv->result = EAP_TLV_RESULT_FAILURE; 203 tlv->result = EAP_TLV_RESULT_FAILURE; 206 tlv->result = WPA_GET_BE16(pos); 207 if (tlv [all...] |
H A D | eap_fast_common.h | 104 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
|
/freebsd-10.1-release/contrib/tcpdump/ |
H A D | print-slow.c | 354 /* did we capture enough for fully decoding the tlv header ? */ 378 /* did we capture enough for fully decoding the tlv ? */ 481 } tlv; local 513 tlv.slow_oam_info = (const struct slow_oam_info_t *)tptr; 515 if (tlv.slow_oam_info->info_length != 523 tlv.slow_oam_info->oam_version, 524 EXTRACT_16BITS(&tlv.slow_oam_info->revision)); 528 tlv.slow_oam_info->state & OAM_INFO_TYPE_PARSER_MASK), 530 tlv.slow_oam_info->state & OAM_INFO_TYPE_MUX_MASK)); 533 tlv [all...] |
H A D | print-forces.c | 37 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local 38 register const u_char *tdp = (u_char *) TLV_DATA(tlv); 74 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local 76 register const u_char *tdp = (u_char *) TLV_DATA(tlv); 84 TCHECK(*tlv); 85 type = EXTRACT_16BITS(&tlv->type); 150 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local 152 register const u_char *tdp = (u_char *) TLV_DATA(tlv); 160 TCHECK(*tlv); 161 type = EXTRACT_16BITS(&tlv 178 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local 716 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local 758 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; local [all...] |
H A D | print-lldp.c | 914 u_int16_t tlv; local 935 while (tlen >= sizeof(tlv)) { 937 TCHECK2(*tptr, sizeof(tlv)); 939 tlv = EXTRACT_16BITS(tptr); 941 tlv_type = LLDP_EXTRACT_TYPE(tlv); 942 tlv_len = LLDP_EXTRACT_LEN(tlv); 945 tlen -= sizeof(tlv); 946 tptr += sizeof(tlv); 958 /* decode every tlv */ 1179 u_int16_t tlv, ca local [all...] |
H A D | forces.h | 433 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0)) 435 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \ 436 (struct forces_tlv*)(((char*)(tlv)) \ 437 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)))) 458 static inline int tlv_valid(const struct forces_tlv *tlv, u_int rlen) argument 462 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL) 464 if (EXTRACT_16BITS(&tlv->length) > rlen) 466 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv [all...] |
/freebsd-10.1-release/contrib/wpa/src/eap_server/ |
H A D | eap_server_fast.c | 1124 struct eap_fast_tlv_parse *tlv) 1129 os_memset(tlv, 0, sizeof(*tlv)); 1147 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); 1228 struct eap_tlv_pac_type_tlv *tlv; local 1230 if (pac == NULL || len != sizeof(*tlv)) 1233 tlv = (struct eap_tlv_pac_type_tlv *) pac; 1235 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE && 1236 be_to_host16(tlv->length) == 2 && 1237 be_to_host16(tlv 1123 eap_fast_parse_tlvs(struct wpabuf *data, struct eap_fast_tlv_parse *tlv) argument 1245 struct eap_fast_tlv_parse tlv; local [all...] |
H A D | eap_server_peap.c | 105 struct eap_tlv_hdr *tlv; local 112 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf)); 119 tlv = wpabuf_put(e, sizeof(*tlv)); 120 tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | 122 tlv->length = host_to_be16(wpabuf_len(buf)); 1083 struct eap_tlv_hdr *tlv; local 1086 if (wpabuf_len(in_decrypted) < sizeof(*tlv) + sizeof(*hdr)) { 1092 tlv = wpabuf_mhead(in_decrypted); 1093 if ((be_to_host16(tlv [all...] |
/freebsd-10.1-release/contrib/wpa/src/eap_peer/ |
H A D | eap_fast.c | 1051 struct eap_fast_tlv_parse *tlv, 1057 os_memset(tlv, 0, sizeof(*tlv)); 1076 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); 1147 struct eap_fast_tlv_parse tlv; local 1150 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) 1156 if (tlv.result == EAP_TLV_RESULT_FAILURE) { 1162 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { 1168 if (tlv.crypto_binding) { 1170 tlv 1050 eap_fast_parse_decrypted(struct wpabuf *decrypted, struct eap_fast_tlv_parse *tlv, struct wpabuf **resp) argument 1364 u8 *tlv; local [all...] |
H A D | eap_peap.c | 583 struct eap_tlv_hdr *tlv; local 590 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf)); 597 tlv = wpabuf_put(e, sizeof(*tlv)); 598 tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | 600 tlv->length = host_to_be16(wpabuf_len(buf)); 838 struct eap_tlv_hdr *tlv; local 841 if (wpabuf_len(in_decrypted) < sizeof(*tlv) + sizeof(*hdr)) { 847 tlv = wpabuf_mhead(in_decrypted); 848 if ((be_to_host16(tlv [all...] |
/freebsd-10.1-release/sys/net/ |
H A D | ieee8023ad_lacp.h | 108 #define TLV_SET(tlv, type, length) \ 110 (tlv)->tlv_type = (type); \ 111 (tlv)->tlv_length = sizeof(*tlv) + (length); \
|
H A D | ieee8023ad_lacp.c | 293 * ignore tlv types for compatibility with 1908 tlv_check(const void *p, size_t size, const struct tlvhdr *tlv, argument 1912 if ((const char *)tlv - (const char *)p + sizeof(*tlv) > size) { 1915 if ((check_type && tlv->tlv_type != tmpl->tmpl_type) || 1916 tlv->tlv_length != tmpl->tmpl_length) { 1922 tlv = (const struct tlvhdr *) 1923 ((const char *)tlv + tlv->tlv_length);
|
/freebsd-10.1-release/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers_p2p.c | 2249 struct wpabuf *tlv = NULL; local 2277 } else if (!os_strcmp(entry.key, "tlv")) { 2281 tlv = wpabuf_alloc_copy(entry.bytearray_value, 2305 if (tlv == NULL) 2307 ref = wpas_p2p_sd_request(wpa_s, addr, tlv); 2308 wpabuf_free(tlv); 2326 if (tlv) 2327 wpabuf_free(tlv); 2341 struct wpabuf *tlv = NULL; local 2368 tlv [all...] |
/freebsd-10.1-release/sys/dev/iwn/ |
H A D | if_iwn.c | 6719 const struct iwn_fw_tlv *tlv; local 6751 while (ptr + sizeof (*tlv) <= end) { 6752 tlv = (const struct iwn_fw_tlv *)ptr; 6753 len = le32toh(tlv->len); 6755 ptr += sizeof (*tlv); 6763 if (tlv->alt != 0 && tlv->alt != htole16(alt)) 6766 switch (le16toh(tlv->type)) { 6817 le16toh(tlv->type)); 6821 "TLV type %d not handled\n", le16toh(tlv [all...] |
/freebsd-10.1-release/sys/netinet/ |
H A D | sctp_asconf.c | 106 uint8_t *tlv; local 135 tlv = (uint8_t *) (error + 1); 136 memcpy(tlv, error_tlv, tlv_length);
|