Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 25 of 61) sorted by relevance

123

/external/wpa_supplicant_8/src/eap_common/
Deap_fast_common.c149 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, in eap_fast_parse_tlv() argument
156 if (tlv->eap_payload_tlv) { in eap_fast_parse_tlv()
159 tlv->iresult = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv()
162 tlv->eap_payload_tlv = pos; in eap_fast_parse_tlv()
163 tlv->eap_payload_tlv_len = len; in eap_fast_parse_tlv()
167 if (tlv->result) { in eap_fast_parse_tlv()
170 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv()
176 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv()
179 tlv->result = WPA_GET_BE16(pos); in eap_fast_parse_tlv()
180 if (tlv->result != EAP_TLV_RESULT_SUCCESS && in eap_fast_parse_tlv()
[all …]
Deap_fast_common.h104 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
/external/llvm/test/MC/MachO/
Dtls.s5 .globl _c$tlv$init
7 _c$tlv$init:
15 .quad _c$tlv$init
18 .globl _d$tlv$init
20 _d$tlv$init:
28 .quad _d$tlv$init
30 .tbss _a$tlv$init, 4, 2
36 .quad _a$tlv$init
38 .tbss _b$tlv$init, 4, 2
44 .quad _b$tlv$init
Dtlv-reloc.s4 _a$tlv$init:
8 .tlv
13 .quad _a$tlv$init
Dtbss.s3 .tbss _a$tlv$init, 4
4 .tbss _b$tlv$init, 4, 3
Dtdata.s3 _a$tlv$init:
Dtlv.s3 .tlv
/external/kernel-headers/original/uapi/linux/
Dtipc_config.h252 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument
254 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument
266 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
269 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument
271 return TLV_OK(tlv, space) && in TLV_CHECK()
272 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK()
275 static inline int TLV_GET_LEN(struct tlv_desc *tlv) in TLV_GET_LEN() argument
277 return ntohs(tlv->tlv_len); in TLV_GET_LEN()
280 static inline void TLV_SET_LEN(struct tlv_desc *tlv, __u16 len) in TLV_SET_LEN() argument
282 tlv->tlv_len = htons(len); in TLV_SET_LEN()
[all …]
/external/tcpdump/
Dprint-slow.c478 } tlv; in slow_oam_print() local
510 tlv.slow_oam_info = (const struct slow_oam_info_t *)tptr; in slow_oam_print()
512 if (tlv.slow_oam_info->info_length != in slow_oam_print()
520 tlv.slow_oam_info->oam_version, in slow_oam_print()
521 EXTRACT_16BITS(&tlv.slow_oam_info->revision))); in slow_oam_print()
525 tlv.slow_oam_info->state & OAM_INFO_TYPE_PARSER_MASK), in slow_oam_print()
527 tlv.slow_oam_info->state & OAM_INFO_TYPE_MUX_MASK))); in slow_oam_print()
530 tlv.slow_oam_info->oam_config), in slow_oam_print()
531 EXTRACT_16BITS(&tlv.slow_oam_info->oam_pdu_config) & in slow_oam_print()
535 EXTRACT_24BITS(&tlv.slow_oam_info->oui)), in slow_oam_print()
[all …]
Dprint-forces.c392 #define TLV_RDAT_LEN(tlv) ((int)(EXTRACT_16BITS(&(tlv)->length) - TLV_SET_LEN(0)) argument
394 #define GO_NXT_TLV(tlv,rlen) ((rlen) -= F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length)), \ argument
395 (struct forces_tlv*)(((char*)(tlv)) \
396 + F_ALN_LEN(EXTRACT_16BITS(&(tlv)->length))))
417 static inline u_int tlv_valid(const struct forces_tlv *tlv, u_int rlen) in tlv_valid() argument
421 if (EXTRACT_16BITS(&tlv->length) < TLV_HDRL) in tlv_valid()
423 if (EXTRACT_16BITS(&tlv->length) > rlen) in tlv_valid()
425 if (rlen < F_ALN_LEN(EXTRACT_16BITS(&tlv->length))) in tlv_valid()
649 const struct forces_tlv *tlv = (struct forces_tlv *)pptr; in prestlv_print() local
650 register const u_char *tdp = (u_char *) TLV_DATA(tlv); in prestlv_print()
[all …]
Dprint-nflog.c73 const nflog_tlv_t *tlv; in nflog_if_print() local
104 tlv = (const nflog_tlv_t *) p; in nflog_if_print()
105 size = tlv->tlv_length; in nflog_if_print()
123 if (tlv->tlv_type == NFULA_PAYLOAD) { in nflog_if_print()
Dprint-lldp.c1109 uint16_t tlv; in lldp_private_dcbx_print() local
1130 while (tlen >= sizeof(tlv)) { in lldp_private_dcbx_print()
1132 ND_TCHECK2(*tptr, sizeof(tlv)); in lldp_private_dcbx_print()
1134 tlv = EXTRACT_16BITS(tptr); in lldp_private_dcbx_print()
1136 tlv_type = LLDP_EXTRACT_TYPE(tlv); in lldp_private_dcbx_print()
1137 tlv_len = LLDP_EXTRACT_LEN(tlv); in lldp_private_dcbx_print()
1140 tlen -= sizeof(tlv); in lldp_private_dcbx_print()
1141 tptr += sizeof(tlv); in lldp_private_dcbx_print()
1379 uint16_t tlv, cap, ena_cap; in lldp_print() local
1389 while (tlen >= sizeof(tlv)) { in lldp_print()
[all …]
/external/tinyalsa/
Dmixer.c361 struct snd_ctl_tlv *tlv; in mixer_ctl_get_array() local
364 if (count > SIZE_MAX - sizeof(*tlv)) in mixer_ctl_get_array()
366 tlv = calloc(1, sizeof(*tlv) + count); in mixer_ctl_get_array()
367 if (!tlv) in mixer_ctl_get_array()
369 tlv->numid = ctl->info->id.numid; in mixer_ctl_get_array()
370 tlv->length = count; in mixer_ctl_get_array()
371 ret = ioctl(ctl->mixer->fd, SNDRV_CTL_IOCTL_TLV_READ, tlv); in mixer_ctl_get_array()
373 source = tlv->tlv; in mixer_ctl_get_array()
376 free(tlv); in mixer_ctl_get_array()
462 struct snd_ctl_tlv *tlv; in mixer_ctl_set_array() local
[all …]
/external/llvm/test/MC/AsmParser/
Ddirective_tbss.s3 # CHECK: .tbss _a$tlv$init, 4
4 # CHECK: .tbss _b$tlv$init, 4, 3
6 .tbss _a$tlv$init, 4
7 .tbss _b$tlv$init, 4, 3
Ddirective_tdata.s4 # CHECK: _a$tlv$init:
8 _a$tlv$init:
Ddirective_tlv.s8 .tlv
/external/wpa_supplicant_8/src/eap_server/
Deap_server_fast.c1134 struct eap_fast_tlv_parse *tlv) in eap_fast_parse_tlvs() argument
1140 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_tlvs()
1159 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_tlvs()
1240 struct eap_tlv_pac_type_tlv *tlv; in eap_fast_pac_type() local
1242 if (pac == NULL || len != sizeof(*tlv)) in eap_fast_pac_type()
1245 tlv = (struct eap_tlv_pac_type_tlv *) pac; in eap_fast_pac_type()
1247 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE && in eap_fast_pac_type()
1248 be_to_host16(tlv->length) == 2 && in eap_fast_pac_type()
1249 be_to_host16(tlv->pac_type) == type; in eap_fast_pac_type()
1257 struct eap_fast_tlv_parse tlv; in eap_fast_process_phase2_tlvs() local
[all …]
/external/libnfc-nci/halimpl/bcm2079x/adaptation/
DStartupConfig.cpp150 UINT8 tlv [] = {0x04, 0xC2, 0x02, 0x61, 0x00}; in disableSecureElement() local
151 tlv [4] = tlv [4] | bitmask; in disableSecureElement()
152 found0xC2 = append (tlv, 5); in disableSecureElement()
/external/wpa_supplicant_8/src/eap_peer/
Deap_fast.c1086 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() argument
1093 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_decrypted()
1113 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_decrypted()
1184 struct eap_fast_tlv_parse tlv; in eap_fast_process_decrypted() local
1187 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) in eap_fast_process_decrypted()
1193 if (tlv.result == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted()
1199 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted()
1205 if (tlv.crypto_binding) { in eap_fast_process_decrypted()
1207 tlv.crypto_binding, in eap_fast_process_decrypted()
1208 tlv.crypto_binding_len); in eap_fast_process_decrypted()
[all …]
/external/llvm/test/CodeGen/X86/
Dtlv-1.ll39 ; CHECK: .tbss _a$tlv$init, 4, 2
45 ; CHECK: .quad _a$tlv$init
47 ; CHECK: .tbss _b$tlv$init, 4, 2
52 ; CHECK: .quad _b$tlv$init
Dtlv-3.ll5 ; CHECK: _foo$tlv$init
/external/libpcap/
Dpcap-common.c1314 nflog_tlv_t *tlv; in swap_nflog_header() local
1334 tlv = (nflog_tlv_t *) p; in swap_nflog_header()
1337 tlv->tlv_type = SWAPSHORT(tlv->tlv_type); in swap_nflog_header()
1338 tlv->tlv_length = SWAPSHORT(tlv->tlv_length); in swap_nflog_header()
1341 size = tlv->tlv_length; in swap_nflog_header()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_module_tests.c920 u8 tlv[] = { in test_eap_fast() local
989 os_memset(tlv + sizeof(tlv) - 20, 0, 20); in test_eap_fast()
990 if (hmac_sha1(cmk, 20, tlv, sizeof(tlv), tlv + sizeof(tlv) - 20) < 0 || in test_eap_fast()
991 os_memcmp(tlv + sizeof(tlv) - 20, compound_mac, in test_eap_fast()
/external/iproute2/tc/
Dem_meta.c148 static inline void dump_value(struct nlmsghdr *n, int tlv, unsigned long val, in dump_value() argument
156 addattr_l(n, MAX_MSG, tlv, &t, sizeof(t)); in dump_value()
162 addattr_l(n, MAX_MSG, tlv, a->data, a->len); in dump_value()
/external/autotest/client/tests/kvm/steps/
DWinXP-64-rss.steps3 # uname -a: Linux dhcp-1-188.tlv.redhat.com 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:58:24 EST 2009 …

123