Home
last modified time | relevance | path

Searched refs:abuf (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/contrib/wpa/src/radius/
H A Dradius_das.c36 const char *abuf, in radius_das_disconnect() argument
71 abuf, from_port); in radius_das_disconnect()
82 abuf, from_port); in radius_das_disconnect()
94 abuf, from_port); in radius_das_disconnect()
116 "'%s' from %s:%d", tmp, abuf, from_port); in radius_das_disconnect()
151 abuf, from_port); in radius_das_disconnect()
156 "%s:%d", abuf, from_port); in radius_das_disconnect()
162 abuf, from_port); in radius_das_disconnect()
199 const char *abuf, int from_port) in radius_das_coa() argument
241 attr, abuf, from_port); in radius_das_coa()
[all …]
H A Dradius_server.c1684 char abuf[50]; in radius_server_receive_auth() local
1703 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, in radius_server_receive_auth()
1704 sizeof(abuf)) == NULL) in radius_server_receive_auth()
1705 abuf[0] = '\0'; in radius_server_receive_auth()
1708 len, abuf, from_port); in radius_server_receive_auth()
1717 os_strlcpy(abuf, inet_ntoa(from.sin.sin_addr), sizeof(abuf)); in radius_server_receive_auth()
1720 len, abuf, from_port); in radius_server_receive_auth()
1728 RADIUS_DEBUG("Unknown client %s - packet ignored", abuf); in radius_server_receive_auth()
1781 RADIUS_DEBUG("Invalid Message-Authenticator from %s", abuf); in radius_server_receive_auth()
1788 fromlen, client, abuf, from_port, NULL) == in radius_server_receive_auth()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dprintpoolfield.c27 char abuf[80]; in printpoolfield() local
50 abuf, sizeof(abuf))); in printpoolfield()
56 abuf, sizeof(abuf))); in printpoolfield()
62 abuf, sizeof(abuf))); in printpoolfield()
72 abuf, sizeof(abuf))); in printpoolfield()
78 abuf, sizeof(abuf))); in printpoolfield()
/freebsd/contrib/ntp/libntp/
H A Drecvbuff.c112 size_t abuf; in create_buffers()
115 abuf = nbufs + buffer_shortfall; in create_buffers()
128 if (abuf < nbufs || abuf > RECV_BATCH) { in create_buffers()
129 abuf = RECV_BATCH; /* clamp on overflow */ in create_buffers()
131 abuf += (~abuf + 1) & (RECV_INC - 1); /* round up */ in create_buffers()
133 if (abuf > (limit_recvbufs - total_recvbufs)) { in create_buffers()
134 abuf = limit_recvbufs - total_recvbufs; in create_buffers()
136 abuf in create_buffers()
110 size_t abuf; create_buffers() local
[all...]
/freebsd/lib/libnetbsd/
H A Dsockaddr_snprintf.c112 char abuf[1024], nbuf[1024], *addr = NULL; in sockaddr_snprintf() local
140 (void)strlcpy(addr = abuf, sun->sun_path, sizeof(abuf)); in sockaddr_snprintf()
157 addr = abuf; in sockaddr_snprintf()
161 (void)snprintf(abuf, sizeof(abuf), "link#%hu", in sockaddr_snprintf()
167 (void)strlcpy(abuf, link_ntoa(sdl), sizeof(abuf)); in sockaddr_snprintf()
180 if (addr == abuf) in sockaddr_snprintf()
183 if (a && getnameinfo(sa, (socklen_t)salen, addr = abuf, in sockaddr_snprintf()
184 (unsigned int)sizeof(abuf), NULL, 0, in sockaddr_snprintf()
241 if (sdl && addr != abuf) { in sockaddr_snprintf()
242 ADDS(abuf); in sockaddr_snprintf()
/freebsd/contrib/blocklist/port/
H A Dsockaddr_snprintf.c167 char abuf[1024], nbuf[1024], *addr = NULL; in sockaddr_snprintf() local
199 (void)snprintf(addr = abuf, sizeof(abuf), "%u.%u", in sockaddr_snprintf()
206 (void)strlcpy(addr = abuf, sun->sun_path, sizeof(abuf)); in sockaddr_snprintf()
221 (void)strlcpy(addr = abuf, link_ntoa(sdl), sizeof(abuf)); in sockaddr_snprintf()
233 if (addr == abuf) in sockaddr_snprintf()
236 if (a && getnameinfo(sa, (socklen_t)SLEN(sa), addr = abuf, in sockaddr_snprintf()
237 (unsigned int)sizeof(abuf), NULL, 0, in sockaddr_snprintf()
295 if (sdl && addr != abuf) { in sockaddr_snprintf()
296 ADDS(abuf); in sockaddr_snprintf()
/freebsd/libexec/talkd/
H A Dprint.c70 char tbuf[80], abuf[80]; in print_response() local
78 (void)snprintf(abuf, sizeof(abuf), "answer %d", rp->answer); in print_response()
79 ap = abuf; in print_response()
/freebsd/sys/contrib/dpdk_rte_lpm/
H A Ddpdk_lpm.c166 char abuf[INET_ADDRSTRLEN]; in handle_gu_change() local
170 inet_ntop(AF_INET, &addr, abuf, sizeof(abuf)); in handle_gu_change()
187 abuf, plen, in handle_gu_change()
200 "DEL", abuf, plen, parent_plen, fib_get_nhop_idx(dd->fd, rc->rc_nh_old), in handle_gu_change()
258 char abuf[INET_ADDRSTRLEN]; in add_route_cb() local
259 inet_ntop(AF_INET, &addr4, abuf, sizeof(abuf)); in add_route_cb()
261 FIB_PRINTF(LOG_DEBUG, dd->fd, "Operating on %s/%d", abuf, plen); in add_route_cb()
280 dd->lpm, abuf, plen, nhidx, ret); in add_route_cb()
H A Ddpdk_lpm6.c199 char abuf[INET6_ADDRSTRLEN]; in handle_gu_change() local
200 inet_ntop(AF_INET6, addr6, abuf, sizeof(abuf)); in handle_gu_change()
218 abuf, plen, in handle_gu_change()
234 "DEL", abuf, plen, parent_plen, fib_get_nhop_idx(dd->fd, rc->rc_nh_old), in handle_gu_change()
321 char abuf[INET6_ADDRSTRLEN]; in add_route_cb() local
322 inet_ntop(AF_INET6, &addr6, abuf, sizeof(abuf)); in add_route_cb()
323 FIB_PRINTF(LOG_DEBUG, dd->fd, "Operating on %s/%d", abuf, plen); in add_route_cb()
342 dd->lpm6, abuf, plen, nhidx, ret); in add_route_cb()
/freebsd/sys/crypto/via/
H A Dpadlock_cipher.c186 u_char *buf, *abuf; in padlock_cipher_process() local
195 abuf = PADLOCK_ALIGN(buf); in padlock_cipher_process()
220 crp->crp_payload_length, abuf); in padlock_cipher_process()
225 padlock_cbc(abuf, abuf, crp->crp_payload_length / AES_BLOCK_LEN, key, in padlock_cipher_process()
231 crp->crp_payload_length, abuf); in padlock_cipher_process()
/freebsd/lib/libipsec/
H A Dipsec_dump_policy.c177 char abuf[NI_MAXHOST * 2 + 2]; in ipsec_dump_ipsecrequest() local
217 abuf[0] = '\0'; in ipsec_dump_ipsecrequest()
230 if (set_addresses(abuf, sizeof(abuf), sa1, sa2) != 0) { in ipsec_dump_ipsecrequest()
255 snprintf(buf, len, "%s/%s/%s/%s", proto, mode, abuf, level); in ipsec_dump_ipsecrequest()
263 snprintf(buf, len, "%s/%s/%s/%s%c%u", proto, mode, abuf, level, in ipsec_dump_ipsecrequest()
/freebsd/usr.bin/mail/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; in quit() local
212 if ((abuf = Fopen(mbox, "r")) != NULL) { in quit()
213 while ((c = getc(abuf)) != EOF) in quit()
215 (void)Fclose(abuf); in quit()
301 abuf = Fopen(mailname, "r+"); in quit()
302 if (abuf == NULL) in quit()
305 (void)putc(c, abuf); in quit()
307 trunc(abuf); in quit()
308 (void)Fclose(abuf); in quit()
/freebsd/tools/regression/aio/aiop/
H A Daiop.c126 char **abuf; in main() local
191 abuf = calloc(aio_len, sizeof(char *)); in main()
193 abuf[i] = calloc(1, io_size * sizeof(char)); in main()
200 set_aio(aio + i, choose_aio(iowhat), fd, offset, io_size, abuf[i]); in main()
210 set_aio(aio + n, choose_aio(iowhat), fd, offset, io_size, abuf[n]); in main()
/freebsd/sys/netgraph/
H A Dng_async.c79 u_char *abuf; /* Buffer to encode sync into */ member
188 sc->abuf = malloc(ASYNC_BUF_SIZE(sc->cfg.smru), in nga_constructor()
292 free(sc->abuf, M_NETGRAPH_ASYNC); in nga_rcvmsg()
293 sc->abuf = buf; in nga_rcvmsg()
339 free(sc->abuf, M_NETGRAPH_ASYNC); in nga_shutdown()
388 sc->abuf[(*len)++] = PPP_ESCAPE; in nga_async_add()
391 sc->abuf[(*len)++] = x; in nga_async_add()
453 sc->abuf[alen++] = PPP_FLAG; in nga_rcv_sync()
471 sc->abuf[alen++] = PPP_FLAG; in nga_rcv_sync()
474 if (!(m = m_devget(sc->abuf, alen, 0, rcvif, NULL))) { in nga_rcv_sync()
/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_doit.c846 unsigned char *abuf = NULL; in PKCS7_dataFinal() local
849 abuf = OPENSSL_malloc(abuflen); in PKCS7_dataFinal()
850 if (abuf == NULL) in PKCS7_dataFinal()
853 if (!EVP_SignFinal_ex(ctx_tmp, abuf, &abuflen, si->pkey, in PKCS7_dataFinal()
856 OPENSSL_free(abuf); in PKCS7_dataFinal()
860 ASN1_STRING_set0(si->enc_digest, abuf, abuflen); in PKCS7_dataFinal()
910 unsigned char *abuf = NULL; in PKCS7_SIGNER_INFO_sign() local
932 alen = ASN1_item_i2d((ASN1_VALUE *)si->auth_attr, &abuf, in PKCS7_SIGNER_INFO_sign()
934 if (!abuf) in PKCS7_SIGNER_INFO_sign()
936 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0) in PKCS7_SIGNER_INFO_sign()
[all …]
/freebsd/tests/sys/net/routing/
H A Drtsock_print.h194 char hdbuf[512], abuf[64]; in sa_print() local
204 inet_ntop(AF_INET, &sin->sin_addr, abuf, sizeof(abuf)); in sa_print()
205 printf(" af=inet len=%d addr=%s", sa->sa_len, abuf); in sa_print()
209 inet_ntop(AF_INET6, &sin6->sin6_addr, abuf, sizeof(abuf)); in sa_print()
211 printf(" af=inet6 len=%d addr=%s", sa->sa_len, abuf); in sa_print()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_diff.c136 arc_buf_t *abuf; in diff_cb() local
145 if (arc_read(NULL, spa, bp, arc_getbuf_func, &abuf, in diff_cb()
149 blk = abuf->b_data; in diff_cb()
157 arc_buf_destroy(abuf, &abuf); in diff_cb()
/freebsd/crypto/openssl/test/
H A Ddhtest.c51 unsigned char *abuf = NULL; in dh_test() local
210 if (!TEST_ptr(abuf = OPENSSL_malloc(alen)) in dh_test()
211 || !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1)) in dh_test()
225 || !TEST_mem_eq(abuf, aout, bbuf, bout) in dh_test()
226 || !TEST_mem_eq(abuf, aout, cbuf, cout)) in dh_test()
242 OPENSSL_free(abuf); in dh_test()
666 unsigned char *abuf = NULL; in rfc7919_test() local
696 if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen)) in rfc7919_test()
697 || !TEST_true((aout = DH_compute_key(abuf, bpub_key, a)) != -1)) in rfc7919_test()
706 || !TEST_mem_eq(abuf, aout, bbuf, bout)) in rfc7919_test()
[all …]
/freebsd/sbin/ipfw/
H A Dnptv6.c355 char abuf[INET6_ADDRSTRLEN]; in nptv6_show_cb() local
365 inet_ntop(AF_INET6, &cfg->internal, abuf, sizeof(abuf)); in nptv6_show_cb()
366 printf("nptv6 %s int_prefix %s ", cfg->name, abuf); in nptv6_show_cb()
370 inet_ntop(AF_INET6, &cfg->external, abuf, sizeof(abuf)); in nptv6_show_cb()
371 printf("ext_prefix %s ", abuf); in nptv6_show_cb()
/freebsd/sys/net/route/
H A Droute_ddb.c208 char abuf[INET6_ADDRSTRLEN], *buf, *end; in DB_SHOW_COMMAND_FLAGS() local
244 if (inet_ntop(af, dst_addrp, abuf, sizeof(abuf)) != NULL) in DB_SHOW_COMMAND_FLAGS()
245 db_printf("Looking up route to destination '%s'\n", abuf); in DB_SHOW_COMMAND_FLAGS()
H A Droute_helpers.c634 char abuf[INET6_ADDRSTRLEN]; in rt_print_buf() local
645 inet_ntop(AF_INET, &addr4, abuf, sizeof(abuf)); in rt_print_buf()
646 snprintf(buf, bufsize, "rt/%s/%d", abuf, plen); in rt_print_buf()
655 inet_ntop(AF_INET6, &addr6, abuf, sizeof(abuf)); in rt_print_buf()
656 snprintf(buf, bufsize, "rt/%s/%d", abuf, plen); in rt_print_buf()
/freebsd/usr.sbin/ndp/
H A Dndp.c600 char abuf[INET6_ADDRSTRLEN]; in delete_rtsock() local
601 inet_ntop(AF_INET6, &sin->sin6_addr, abuf, sizeof(abuf)); in delete_rtsock()
604 xo_emit("{e:address/%s}{e:interface/%s}", abuf, ifname); in delete_rtsock()
1122 char abuf[20], xobuf[200]; in ifinfo() local
1124 snprintf(&abuf[j * 2], sizeof(abuf), "%02X", rbuf[j]); in ifinfo()
1126 xo_emit(xobuf, abuf); in ifinfo()
1194 char abuf[INET6_ADDRSTRLEN], *paddr; in rtrlist() local
1203 inet_ntop(AF_INET6, &p->rtaddr.sin6_addr, abuf, sizeof(abuf)); in rtrlist()
1204 paddr = abuf; in rtrlist()
1361 char abuf[INET6_ADDRSTRLEN]; in plist() local
[all …]
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_sd.c789 unsigned char *abuf = NULL; in CMS_SignerInfo_sign() local
819 alen = ASN1_item_i2d((ASN1_VALUE *)si->signedAttrs, &abuf, in CMS_SignerInfo_sign()
821 if (!abuf) in CMS_SignerInfo_sign()
823 if (EVP_DigestSignUpdate(mctx, abuf, alen) <= 0) in CMS_SignerInfo_sign()
827 OPENSSL_free(abuf); in CMS_SignerInfo_sign()
828 abuf = OPENSSL_malloc(siglen); in CMS_SignerInfo_sign()
829 if (abuf == NULL) in CMS_SignerInfo_sign()
831 if (EVP_DigestSignFinal(mctx, abuf, &siglen) <= 0) in CMS_SignerInfo_sign()
836 ASN1_STRING_set0(si->signature, abuf, siglen); in CMS_SignerInfo_sign()
841 OPENSSL_free(abuf); in CMS_SignerInfo_sign()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dnetaddr.c129 char abuf[sizeof("xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:255.255.255.255")]; in isc_netaddr_totext() local
158 r = inet_ntop(netaddr->family, type, abuf, sizeof(abuf)); in isc_netaddr_totext()
162 alen = (unsigned int)strlen(abuf); /* no overflow possible */ in isc_netaddr_totext()
163 INSIST(alen < sizeof(abuf)); in isc_netaddr_totext()
176 isc_buffer_putmem(target, (unsigned char *)abuf, alen); in isc_netaddr_totext()
/freebsd/lib/libc/net/
H A Dhesiod.c349 unsigned char qbuf[PACKETSZ], abuf[MAX_HESRESP], *p, *eom, *eor; in get_txt_records() local
364 n = res_send(qbuf, n, abuf, MAX_HESRESP); in get_txt_records()
370 hp = (HEADER *) (void *) abuf; in get_txt_records()
373 p = abuf + sizeof(HEADER); in get_txt_records()
374 eom = abuf + n; in get_txt_records()

123