Home
last modified time | relevance | path

Searched refs:buflen (Results 151 – 175 of 733) sorted by relevance

12345678910>>...30

/freebsd/contrib/wpa/wpa_supplicant/
H A Dwifi_display.c353 char *buf, size_t buflen) in wifi_display_subelem_get() argument
364 res = wpa_snprintf_hex(buf, buflen, wpabuf_head(ie), in wifi_display_subelem_get()
377 return wpa_snprintf_hex(buf, buflen, in wifi_display_subelem_get()
388 size_t buflen; in wifi_display_subelem_hex() local
399 buflen = wpabuf_len(wfd_subelems); in wifi_display_subelem_hex()
401 while (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN < buflen) { in wifi_display_subelem_hex()
403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen) in wifi_display_subelem_hex()
/freebsd/lib/libutil/tests/
H A Dhumanize_number_test.c50 size_t buflen; member
501 size_t blen, buflen, errcnt, i, skipped, tested; in main() local
508 buflen = 0; in main()
513 read_options(argc, argv, &buflen, &includeNegScale, in main()
520 if (buflen != 4) in main()
521 printf("Warning: buffer size %zu != 4, expect some results to differ.\n", buflen); in main()
525 blen = (buflen > 0) ? buflen : test_args[i].buflen; in main()
/freebsd/usr.bin/fstat/
H A Dfstat.c322 addr_to_string(struct sockaddr_storage *ss, char *buffer, int buflen) in addr_to_string() argument
333 strlcpy(buffer, "-", buflen); in addr_to_string()
335 strlcpy(buffer, sun->sun_path, buflen); in addr_to_string()
341 snprintf(buffer, buflen, "%s:%d", "*", in addr_to_string()
345 snprintf(buffer, buflen, "%s:%d", buffer2, in addr_to_string()
352 snprintf(buffer, buflen, "%s.%d", "*", in addr_to_string()
356 snprintf(buffer, buflen, "%s.%d", buffer2, in addr_to_string()
359 strlcpy(buffer, "-", buflen); in addr_to_string()
363 strlcpy(buffer, "", buflen); in addr_to_string()
/freebsd/lib/libfetch/
H A Dhttp.c228 io->buflen = nbytes; in http_fillbuf()
230 return (io->buflen); in http_fillbuf()
255 io->buflen = nbytes; in http_fillbuf()
264 return (io->buflen); in http_fillbuf()
507 buf->buflen = 0; in init_http_headerbuf()
522 while (conn->buflen && in http_conn_trimright()
524 conn->buflen--; in http_conn_trimright()
538 if (conn->buflen == 0) in http_next_header()
548 hbuf->buflen = conn->buflen; in http_next_header()
569 len = hbuf->buflen + conn->buflen; in http_next_header()
[all …]
/freebsd/tests/sys/netinet/
H A Dudp_dontroute.c60 const size_t buflen = 80; in main() local
61 char recvbuf[buflen]; in main()
122 len = read(t, recvbuf, buflen); in main()
/freebsd/sys/net80211/
H A Dieee80211_crypto_tkip.c670 size_t buflen; in wep_encrypt() local
690 buflen = m->m_len - off; in wep_encrypt()
692 if (buflen > data_len) in wep_encrypt()
693 buflen = data_len; in wep_encrypt()
694 data_len -= buflen; in wep_encrypt()
709 buflen = m->m_len; in wep_encrypt()
732 size_t buflen; in wep_decrypt() local
749 if (buflen > data_len) in wep_decrypt()
750 buflen = data_len; in wep_decrypt()
751 data_len -= buflen; in wep_decrypt()
[all …]
/freebsd/sys/dev/ocs_fc/
H A Docs_gendump.h37 extern int ocs_dump_to_host(ocs_t *ocs, void *buf, uint32_t buflen);
38 extern int ocs_function_speciic_dump(ocs_t *ocs, void *buf, uint32_t buflen);
/freebsd/crypto/heimdal/appl/telnet/libtelnet/
H A Dencrypt.c972 unsigned char *buf, size_t buflen) in encrypt_gen_printsub() argument
978 buf[buflen-1] = '\0'; in encrypt_gen_printsub()
979 buf[buflen-2] = '*'; in encrypt_gen_printsub()
980 buflen -= 2;; in encrypt_gen_printsub()
983 for (cp = tbuf; *cp && buflen > 0; --buflen) in encrypt_gen_printsub()
985 if (buflen <= 0) in encrypt_gen_printsub()
993 unsigned char *buf, size_t buflen) in encrypt_printsub() argument
1002 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub()
1004 encrypt_gen_printsub(data, cnt, buf, buflen); in encrypt_printsub()
/freebsd/contrib/telnet/libtelnet/
H A Dencrypt.c915 encrypt_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in encrypt_gen_printsub() argument
921 buf[buflen-1] = '\0'; in encrypt_gen_printsub()
922 buf[buflen-2] = '*'; in encrypt_gen_printsub()
923 buflen -= 2;; in encrypt_gen_printsub()
926 for (cp = tbuf; *cp && buflen > 0; --buflen) in encrypt_gen_printsub()
928 if (buflen <= 0) in encrypt_gen_printsub()
935 encrypt_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in encrypt_printsub() argument
944 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub()
946 encrypt_gen_printsub(data, cnt, buf, buflen); in encrypt_printsub()
/freebsd/contrib/netbsd-tests/net/bpfjit/
H A Dt_extmem.c96 .buflen = sizeof(pkt), in ATF_TC_BODY()
172 .buflen = sizeof(pkt), in ATF_TC_BODY()
230 .buflen = sizeof(pkt), in ATF_TC_BODY()
310 .buflen = sizeof(pkt), in ATF_TC_BODY()
361 .buflen = sizeof(pkt), in ATF_TC_BODY()
413 .buflen = sizeof(pkt), in ATF_TC_BODY()
465 .buflen = sizeof(pkt), in ATF_TC_BODY()
/freebsd/sys/contrib/libb2/
H A Dblake2bp.c72 S->buflen = 0; in blake2bp_init()
93 S->buflen = 0; in blake2bp_init_key()
121 size_t left = S->buflen; in blake2bp_update()
164 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2bp_update()
178 if( S->buflen > i * BLAKE2B_BLOCKBYTES ) in blake2bp_final()
180 size_t left = S->buflen - i * BLAKE2B_BLOCKBYTES; in blake2bp_final()
H A Dblake2sp.c69 S->buflen = 0; in blake2sp_init()
90 S->buflen = 0; in blake2sp_init_key()
118 size_t left = S->buflen; in blake2sp_update()
161 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2sp_update()
174 if( S->buflen > i * BLAKE2S_BLOCKBYTES ) in blake2sp_final()
176 size_t left = S->buflen - i * BLAKE2S_BLOCKBYTES; in blake2sp_final()
/freebsd/crypto/openssl/doc/man3/
H A DOPENSSL_hexchar2int.pod15 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, long *buflen,
19 const unsigned char *buf, long buflen,
21 char *OPENSSL_buf2hexstr(const unsigned char *buf, long buflen);
33 If I<buflen> is not NULL, it is filled in with the result length.
46 length I<buflen> and places the resulting hexadecimal character string
/freebsd/tests/sys/kern/
H A Dsocket_msg_waitall.c35 size_t buflen; in close_test_client() local
37 buflen = p->msglen + 1; in close_test_client()
38 buf = malloc(buflen); in close_test_client()
51 n = recv(s, buf, buflen, MSG_WAITALL); in close_test_client()
/freebsd/contrib/netbsd-tests/usr.bin/nbperf/
H A Dhash_driver.c43 size_t buflen; in main() local
46 while ((len = getline(&line, &buflen, stdin)) > 0) { in main()
/freebsd/contrib/libucl/src/
H A Ducl_util.c759 size_t buflen; member
814 *buflen = us.size;
852 cbdata.buflen = 0;
867 *buflen = cbdata.buflen;
910 *buflen = 0;
1012 size_t buflen = 0; local
1086 size_t buflen = 0; local
1387 if (buflen > 0) {
1763 size_t buflen; local
1777 buflen = 0;
[all …]
/freebsd/lib/libc/stdlib/
H A Dl64a.c26 l64a_r(long value, char *buffer, int buflen) in l64a_r() argument
33 while (buflen-- > 0) { in l64a_r()
/freebsd/tools/build/cross-build/include/linux/
H A Dunistd.h72 getentropy(void *buf, size_t buflen) in getentropy() argument
74 return (syscall(__NR_getrandom, buf, buflen, 0)); in getentropy()
/freebsd/sbin/nvmecontrol/
H A Dnc_util.c33 uint128_to_str(uint128_t u, char *buf, size_t buflen) in uint128_to_str() argument
35 char *end = buf + buflen - 1; in uint128_to_str()
/freebsd/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.c126 size_t buflen; in main() local
150 buflen = DEFAULT_PAYLOAD_SIZE; in main()
174 buflen = atoi(optarg); in main()
286 buf = malloc(buflen); in main()
294 iov[0].iov_len = buflen; in main()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_psk.c91 size_t buflen, len; in eap_psk_process_1() local
146 buflen = data->id_p_len + data->id_s_len + 2 * EAP_PSK_RAND_LEN; in eap_psk_process_1()
147 buf = os_malloc(buflen); in eap_psk_process_1()
159 if (omac1_aes_128(data->ak, buf, buflen, hdr2->mac_p)) { in eap_psk_process_1()
187 size_t buflen, left, data_len, len, plen; in eap_psk_process_3() local
228 buflen = data->id_s_len + EAP_PSK_RAND_LEN; in eap_psk_process_3()
229 buf = os_malloc(buflen); in eap_psk_process_3()
234 if (omac1_aes_128(data->ak, buf, buflen, mac)) { in eap_psk_process_3()
/freebsd/crypto/openssl/apps/
H A Drehash.c355 int n, numfiles, nextid, dirlen, buflen, errs = 0; in do_dir() local
397 buflen = dirlen + fname_max_len + 1; in do_dir()
398 buf = app_malloc(buflen, "filename buffer"); in do_dir()
403 if (BIO_snprintf(buf, buflen, "%s%s%s", in do_dir()
404 dirname, pathsep, filename) >= buflen) in do_dir()
426 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir()
436 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
458 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
/freebsd/contrib/wpa/src/ap/
H A Dp2p_hostapd.h15 char *buf, size_t buflen);
26 char *buf, size_t buflen) in hostapd_p2p_get_mib_sta() argument
/freebsd/contrib/wpa/hostapd/
H A Dctrl_iface.c489 if (os_strlen(pin) > buflen) in hostapd_ctrl_iface_wps_ap_pin()
551 end = buf + buflen; in hostapd_ctrl_iface_wps_get_status()
1049 end = buf + buflen; in hostapd_ctrl_iface_get_key_mgmt()
1192 end = buf + buflen; in hostapd_ctrl_iface_get_config()
2987 end = buf + buflen; in hostapd_ctrl_iface_log_level()
3039 end = buf + buflen; in hostapd_ctrl_iface_track_sta_list()
3327 size_t buflen) in hostapd_ctrl_driver_flags() argument
3338 end = buf + buflen; in hostapd_ctrl_driver_flags()
3355 size_t buflen) in hostapd_ctrl_driver_flags2() argument
3366 end = buf + buflen; in hostapd_ctrl_driver_flags2()
[all …]
/freebsd/contrib/libarchive/libarchive/
H A Darchive_blake2sp_ref.c87 S->buflen = 0; in blake2sp_init()
110 S->buflen = 0; in blake2sp_init_key()
138 size_t left = S->buflen; in blake2sp_update()
181 S->buflen = left + inlen; in blake2sp_update()
197 if( S->buflen > i * BLAKE2S_BLOCKBYTES ) in blake2sp_final()
199 size_t left = S->buflen - i * BLAKE2S_BLOCKBYTES; in blake2sp_final()

12345678910>>...30