Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 25 of 50) sorted by relevance

12

/external/iproute2/lib/
Dll_map.c32 int alen; member
78 int alen; in ll_remember_index() local
79 im->alen = alen = RTA_PAYLOAD(tb[IFLA_ADDRESS]); in ll_remember_index()
80 if (alen > sizeof(im->addr)) in ll_remember_index()
81 alen = sizeof(im->addr); in ll_remember_index()
82 memcpy(im->addr, RTA_DATA(tb[IFLA_ADDRESS]), alen); in ll_remember_index()
84 im->alen = 0; in ll_remember_index()
138 unsigned alen) in ll_index_to_addr() argument
147 if (alen > sizeof(im->addr)) in ll_index_to_addr()
148 alen = sizeof(im->addr); in ll_index_to_addr()
[all …]
Dll_addr.c32 const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen) in ll_addr_n2a() argument
37 if (alen == 4 && in ll_addr_n2a()
41 if (alen == 16 && type == ARPHRD_TUNNEL6) { in ll_addr_n2a()
45 for (i=0; i<alen; i++) { in ll_addr_n2a()
Dlibnetlink.c545 int alen) in addattr_l() argument
547 int len = RTA_LENGTH(alen); in addattr_l()
557 memcpy(RTA_DATA(rta), data, alen); in addattr_l()
626 const void *data, int alen) in rta_addattr_l() argument
629 int len = RTA_LENGTH(alen); in rta_addattr_l()
638 memcpy(RTA_DATA(subrta), data, alen); in rta_addattr_l()
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.c501 size_t alen, plen, i, list_len; in eap_sim_parse_attr() local
528 alen = pos[1] * 4 - 2; in eap_sim_parse_attr()
530 apos, alen); in eap_sim_parse_attr()
536 alen -= 2; in eap_sim_parse_attr()
537 if ((!aka && (alen % GSM_RAND_LEN)) || in eap_sim_parse_attr()
538 (aka && alen != EAP_AKA_RAND_LEN)) { in eap_sim_parse_attr()
541 (unsigned long) alen); in eap_sim_parse_attr()
545 attr->num_chal = alen / GSM_RAND_LEN; in eap_sim_parse_attr()
555 alen -= 2; in eap_sim_parse_attr()
556 if (alen != EAP_AKA_AUTN_LEN) { in eap_sim_parse_attr()
[all …]
/external/openssl/crypto/modes/
Dccm128.c105 const unsigned char *aad,size_t alen) in CRYPTO_ccm128_aad() argument
109 if (alen==0) return; in CRYPTO_ccm128_aad()
115 if (alen<(0x10000-0x100)) { in CRYPTO_ccm128_aad()
116 ctx->cmac.c[0] ^= (u8)(alen>>8); in CRYPTO_ccm128_aad()
117 ctx->cmac.c[1] ^= (u8)alen; in CRYPTO_ccm128_aad()
120 else if (sizeof(alen)==8 && alen>=(size_t)1<<(32%(sizeof(alen)*8))) { in CRYPTO_ccm128_aad()
123 ctx->cmac.c[2] ^= (u8)(alen>>(56%(sizeof(alen)*8))); in CRYPTO_ccm128_aad()
124 ctx->cmac.c[3] ^= (u8)(alen>>(48%(sizeof(alen)*8))); in CRYPTO_ccm128_aad()
125 ctx->cmac.c[4] ^= (u8)(alen>>(40%(sizeof(alen)*8))); in CRYPTO_ccm128_aad()
126 ctx->cmac.c[5] ^= (u8)(alen>>(32%(sizeof(alen)*8))); in CRYPTO_ccm128_aad()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_gpsk.c250 u16 alen; in eap_gpsk_process_gpsk_2() local
269 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2()
271 if (end - pos < alen) { in eap_gpsk_process_gpsk_2()
278 data->id_peer = os_malloc(alen); in eap_gpsk_process_gpsk_2()
281 "%d-octet ID_Peer", alen); in eap_gpsk_process_gpsk_2()
284 os_memcpy(data->id_peer, pos, alen); in eap_gpsk_process_gpsk_2()
285 data->id_peer_len = alen; in eap_gpsk_process_gpsk_2()
288 pos += alen; in eap_gpsk_process_gpsk_2()
296 alen = WPA_GET_BE16(pos); in eap_gpsk_process_gpsk_2()
298 if (end - pos < alen) { in eap_gpsk_process_gpsk_2()
[all …]
/external/valgrind/main/VEX/priv/
Dguest_amd64_toIR.c4006 Int alen; in dis_Grp4() local
4037 IRTemp addr = disAMode ( &alen, vbi, pfx, delta, dis_buf, 0 ); in dis_Grp4()
4064 delta += alen; in dis_Grp4()
4457 Int alen; in dis_mul_E_G() local
4469 IRTemp addr = disAMode( &alen, vbi, pfx, delta0, dis_buf, 0 ); in dis_mul_E_G()
4488 return alen+delta0; in dis_mul_E_G()
4502 Int alen; in dis_imul_I_E_G() local
4516 IRTemp addr = disAMode( &alen, vbi, pfx, delta, dis_buf, in dis_imul_I_E_G()
4519 delta += alen; in dis_imul_I_E_G()
6847 Int alen, size; in dis_MMX_shiftG_byE() local
[all …]
Dguest_x86_toIR.c2958 Int alen; in dis_Grp4() local
2996 IRTemp addr = disAMode ( &alen, sorb, delta, dis_buf ); in dis_Grp4()
3023 delta += alen; in dis_Grp4()
3320 Int alen; in dis_mul_E_G() local
3332 IRTemp addr = disAMode( &alen, sorb, delta0, dis_buf ); in dis_mul_E_G()
3350 return alen+delta0; in dis_mul_E_G()
3362 Int d32, alen; in dis_imul_I_E_G() local
3376 IRTemp addr = disAMode( &alen, sorb, delta, dis_buf ); in dis_imul_I_E_G()
3378 delta += alen; in dis_imul_I_E_G()
5602 Int alen, size; in dis_MMX_shiftG_byE() local
[all …]
/external/libppp/src/
Dchap.c700 u_char alen; in chap_Input() local
746 bp = mbuf_Read(bp, &alen, 1); in chap_Input()
747 len -= alen + 1; in chap_Input()
753 *chap->challenge.peer = alen; in chap_Input()
754 bp = mbuf_Read(bp, chap->challenge.peer + 1, alen); in chap_Input()
768 bp = mbuf_Read(bp, &alen, 1); in chap_Input()
769 len -= alen + 1; in chap_Input()
775 if ((ans = malloc(alen + 1)) == NULL) { in chap_Input()
781 bp = mbuf_Read(bp, ans + 1, alen); in chap_Input()
785 alen == 49 && ans[alen] == 0; in chap_Input()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_gpsk.c131 u16 alen; in eap_gpsk_process_id_server() local
137 alen = WPA_GET_BE16(pos); in eap_gpsk_process_id_server()
139 if (end - pos < alen) { in eap_gpsk_process_id_server()
144 data->id_server = os_malloc(alen); in eap_gpsk_process_id_server()
149 os_memcpy(data->id_server, pos, alen); in eap_gpsk_process_id_server()
150 data->id_server_len = alen; in eap_gpsk_process_id_server()
153 pos += alen; in eap_gpsk_process_id_server()
499 u16 alen; in eap_gpsk_validate_pd_payload_2() local
509 alen = WPA_GET_BE16(pos); in eap_gpsk_validate_pd_payload_2()
511 if (end - pos < alen) { in eap_gpsk_validate_pd_payload_2()
[all …]
/external/dropbear/libtomcrypt/src/encauth/gcm/
Dgcm_test.c35 unsigned long alen; in gcm_test()
344 tests[x].A, tests[x].alen, in gcm_test()
375 tests[x].A, tests[x].alen, in gcm_test()
/external/ipsec-tools/src/racoon/
Disakmp_cfg.c322 size_t alen; local
363 alen = ntohs(attr->lorv);
366 if (tlen < alen) {
375 s_isakmp_cfg_type(type), alen);
439 attr = (struct isakmp_data *)(npp + sizeof(*attr) + alen);
440 tlen -= (sizeof(*attr) + alen);
472 alen = ntohs(attrpl->h.len) - sizeof(*attrpl);
473 if ((buf = vmalloc(alen)) == NULL) {
495 size_t alen; local
548 alen = ntohs(attr->lorv);
[all …]
Disakmp_unity.c208 int alen = ntohs(attr->lorv); local
217 if (alen)
218 count = alen / sizeof(struct unity_network);
231 if (alen)
232 count = alen / sizeof(struct unity_network);
/external/openssh/
Dauth2-hostbased.c63 u_int alen, blen, slen; in userauth_hostbased() local
71 pkalg = packet_get_string(&alen); in userauth_hostbased()
112 buffer_put_string(&b, pkalg, alen); in userauth_hostbased()
Dauth2-pubkey.c74 u_int alen, blen, slen; in userauth_pubkey() local
90 pkalg = buffer_get_string(&b, &alen); in userauth_pubkey()
93 pkalg = packet_get_string(&alen); in userauth_pubkey()
162 packet_put_string(pkalg, alen); in userauth_pubkey()
/external/openssl/crypto/dh/
Ddhtest.c103 int i,alen,blen,aout,bout,ret=1; in main() local
166 alen=DH_size(a); in main()
167 abuf=(unsigned char *)OPENSSL_malloc(alen); in main()
/external/quake/quake/src/QW/qwfwd/
Dqwfwd.c171 int alen; in main() local
212 alen = sizeof(fsin); in main()
213 i1 = recvfrom(s, buffer, 4096, 0, (struct sockaddr *) &fsin, &alen); in main()
/external/openssl/crypto/ecdh/
Decdhtest.c131 int i,alen,blen,aout,bout,ret=0; in test_ecdh_curve() local
209 alen=KDF1_SHA1_len; in test_ecdh_curve()
210 abuf=(unsigned char *)OPENSSL_malloc(alen); in test_ecdh_curve()
211 aout=ECDH_compute_key(abuf,alen,EC_KEY_get0_public_key(b),a,KDF1_SHA1); in test_ecdh_curve()
/external/iproute2/ip/
Diplink.c620 socklen_t alen; in get_address() local
647 alen = sizeof(me); in get_address()
648 if (getsockname(s, (struct sockaddr*)&me, &alen) == -1) { in get_address()
661 int alen; in parse_address() local
666 alen = ll_addr_a2n(ifr->ifr_hwaddr.sa_data, 14, lla); in parse_address()
667 if (alen < 0) in parse_address()
669 if (alen != halen) { in parse_address()
/external/libpng/contrib/gregbook/
Drpng-win.c145 int rc, alen, flen; in WinMain() local
353 alen = strlen(appname); in WinMain()
355 if (alen + flen + 3 > 1023) in WinMain()
356 sprintf(titlebar, "%s: ...%s", appname, filename+(alen+flen+6-1023)); in WinMain()
/external/tcpdump/
Dprint-bgp.c1569 int alen; in bgp_attr_print() local
1574 alen = bgp_attr_len(&bgpa); in bgp_attr_print()
1583 alen); in bgp_attr_print()
1596 if (!bgp_attr_print(&bgpa, tptr, alen)) in bgp_attr_print()
1598 tptr += alen; in bgp_attr_print()
1599 len -= alen; in bgp_attr_print()
1799 int alen, aoff; in bgp_update_print() local
1803 alen = bgp_attr_len(&bgpa); in bgp_update_print()
1811 alen); in bgp_update_print()
1823 if (!bgp_attr_print(&bgpa, &p[i + aoff], alen)) in bgp_update_print()
[all …]
/external/iproute2/include/
Dlibnetlink.h54 extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen);
61 extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
Dll_map.h13 unsigned alen);
/external/icu4c/samples/uresb/
Duresb.c187 int alen = len; in quotedString() local
195 ++alen; in quotedString()
200 newstr = (UChar *) malloc((1 + alen) * sizeof(*newstr)); in quotedString()
/external/qemu/
Dtrace.c1629 int alen = 0; in trace_execve() local
1635 alen = strlen(ptr); in trace_execve()
1636 ptr += alen + 1; in trace_execve()
1637 sum_len += alen + 1; in trace_execve()
1643 alen = 0; in trace_execve()
1647 alen = strlen(ptr); in trace_execve()
1648 ptr += alen + 1; in trace_execve()
1669 alen = strlen(ptr); in trace_execve()
1670 comp_ptr = varint_encode(alen, comp_ptr); in trace_execve()
1671 strncpy(comp_ptr, ptr, alen); in trace_execve()
[all …]

12