Searched refs:hbuf (Results 1 - 25 of 63) sorted by relevance

123

/openbsd-current/usr.sbin/radiusd/
H A Dutil.c84 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
87 if (getnameinfo(sa, salen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf),
93 ret = snprintf(buf, lbuf, "[%s]:%s", hbuf, sbuf);
97 ret = snprintf(buf, lbuf, "%s:%s", hbuf, sbuf);
/openbsd-current/usr.bin/finger/
H A Dnet.c56 char hbuf[NI_MAXHOST]; local
93 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
95 strlcpy(hbuf, "(invalid)", sizeof hbuf);
97 (void)printf("[%s/%s]\n", host, hbuf);
/openbsd-current/lib/libc/net/
H A Drcmd.c63 static char hbuf[HOST_NAME_MAX+1]; local
108 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf));
109 *ahost = hbuf;
149 char hbuf[NI_MAXHOST]; local
152 hbuf[0] = '\0';
154 hbuf, sizeof(hbuf), NULL, 0, niflags) != 0)
155 strlcpy(hbuf, "(invalid)", sizeof hbuf);
[all...]
H A Drcmdsh.c59 static char hbuf[HOST_NAME_MAX+1]; local
84 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf));
85 *ahost = hbuf;
/openbsd-current/usr.sbin/npppd/npppd/
H A Dnpppd_radius.c149 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
152 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf),
155 strlcpy(hbuf, "unknown", sizeof(hbuf));
160 ppp_id, hbuf, sbuf);
382 char hbuf[NI_MAXHOST], buf[128]; local
403 if (getnameinfo((struct sockaddr *)&ctrl->peer, ctrl->peer.ss_len, hbuf,
404 sizeof(hbuf), NULL, 0, NI_NUMERICHOST))
406 ATTR_STR(RADIUS_TYPE_TUNNEL_CLIENT_ENDPOINT, hbuf);
438 char hbuf[NI_MAXHOST], buf[128]; local
[all...]
/openbsd-current/usr.sbin/slaacctl/
H A Dslaacctl.c187 char hbuf[NI_MAXHOST], whenbuf[255]; local
205 cei->ll_address.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
208 printf("\t inet6: %s\n", hbuf);
214 cei_ra->from.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
225 printf("\tRouter Advertisement from %s\n", hbuf);
266 cei_addr_proposal->addr.sin6_len, hbuf, sizeof(hbuf),
296 printf("\t\t%s, %s/%u\n", hbuf, inet_nto
[all...]
/openbsd-current/sbin/dhcpleased/
H A Dprintconf.c104 char hbuf[INET_ADDRSTRLEN]; local
124 hbuf, sizeof(hbuf)) == NULL)
126 printf("\tignore %s\n", hbuf);
/openbsd-current/sbin/isakmpd/
H A Dnat_traversal.c255 u_int8_t *hbuf, *buf; local
258 hbuf = nat_t_generate_nat_d_hash(msg, sa, &hbuflen);
259 if (!hbuf) {
269 free(hbuf);
274 memcpy(buf + ISAKMP_NAT_D_DATA_OFF, hbuf, hbuflen);
275 free(hbuf);
315 u_int8_t *hbuf; local
327 hbuf = nat_t_generate_nat_d_hash(msg, sa, &hbuflen);
328 if (!hbuf)
336 if (memcmp(p->p + ISAKMP_NAT_D_DATA_OFF, hbuf, hbufle
[all...]
/openbsd-current/usr.sbin/npppd/common/
H A Dnet_utils.c145 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
147 if (getnameinfo(sa, salen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf),
154 strlcat(buf, hbuf, lbuf);
159 strlcpy(buf, hbuf, lbuf);
/openbsd-current/usr.sbin/bgpd/
H A Dmrt.c367 struct ibuf *buf, *hbuf = NULL, *h2buf = NULL; local
514 if (mrt_dump_hdr_rde(&hbuf, MSG_PROTOCOL_BGP4MP, BGP4MP_ENTRY,
518 ibuf_close(&mrt->wbuf, hbuf);
526 ibuf_free(hbuf);
536 struct ibuf *buf, *hbuf = NULL; local
566 if (mrt_dump_hdr_rde(&hbuf, MSG_TABLE_DUMP, subtype, len) == -1)
569 if (ibuf_add_n16(hbuf, 0) == -1)
571 if (ibuf_add_n16(hbuf, snum) == -1)
577 if (ibuf_add(hbuf, &addr.v4, sizeof(addr.v4)) == -1)
581 if (ibuf_add(hbuf,
699 struct ibuf *hbuf = NULL, *nbuf = NULL, *apbuf = NULL, *pbuf; local
817 struct ibuf *buf, *hbuf = NULL; local
[all...]
/openbsd-current/usr.bin/dig/lib/dns/rdata/generic/
H A Dloc_29.c40 char hbuf[sizeof("90000000m")]; local
70 snprintf(hbuf, sizeof(hbuf),
73 snprintf(hbuf, sizeof(hbuf),
138 sbuf, hbuf, vbuf);
/openbsd-current/usr.bin/pr/
H A Dpr.c191 char *hbuf = NULL; local
213 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL)
216 ohbuf = hbuf + offst;
225 (void)memset(hbuf, (int)' ', offst);
261 if (!linecnt && prhead(hbuf, fname, ++pagecnt))
333 free(hbuf);
368 char *hbuf = NULL; local
387 if ((hbuf = malloc((unsigned)HDBUF + offst)) == NULL)
390 ohbuf = hbuf + offst;
392 (void)memset(hbuf, (in
687 char *hbuf = NULL; local
910 char *hbuf = NULL; local
[all...]
/openbsd-current/usr.sbin/httpd/
H A Dserver_fcgi.c97 char hbuf[HOST_NAME_MAX+1]; local
113 memset(hbuf, 0, sizeof(hbuf));
285 (void)print_host(&clt->clt_ss, hbuf, sizeof(hbuf));
286 if (fcgi_add_param(&param, "REMOTE_ADDR", hbuf, clt) == -1) {
291 (void)snprintf(hbuf, sizeof(hbuf), "%d", ntohs(clt->clt_port));
292 if (fcgi_add_param(&param, "REMOTE_PORT", hbuf, clt) == -1) {
323 (void)print_host(&clt->clt_srv_ss, hbuf, sizeo
[all...]
/openbsd-current/usr.sbin/acme-client/
H A Dhttp.c42 char *hbuf; /* header transfer buffer */ member in struct:httpxfer
384 free(x->hbuf);
515 if ((buf = strdup(trans->hbuf)) == NULL) {
599 return trans->hbuf;
620 pp = recallocarray(trans->hbuf,
626 trans->hbuf = pp;
627 memcpy(trans->hbuf + trans->hbufsz, buf, ssz);
630 ep = memmem(trans->hbuf, trans->hbufsz, "\r\n\r\n", 4);
646 if (strlen(trans->hbuf) != (uintptr_t)(ep - trans->hbuf)) {
[all...]
/openbsd-current/usr.sbin/ocspcheck/
H A Dhttp.c41 char *hbuf; /* header transfer buffer */ member in struct:httpxfer
376 free(x->hbuf);
509 if ((buf = strdup(trans->hbuf)) == NULL) {
593 return trans->hbuf;
614 pp = realloc(trans->hbuf, trans->hbufsz + ssz);
619 trans->hbuf = pp;
620 memcpy(trans->hbuf + trans->hbufsz, buf, ssz);
623 ep = memmem(trans->hbuf, trans->hbufsz, "\r\n\r\n", 4);
639 if (strlen(trans->hbuf) != (uintptr_t)(ep - trans->hbuf)) {
[all...]
/openbsd-current/libexec/ld.so/
H A Dlibrary.c108 char hbuf[4096], *exec_start = 0; local
144 _dl_read(libfile, hbuf, sizeof(hbuf));
145 ehdr = (Elf_Ehdr *)hbuf;
161 phdp = (Elf_Phdr *)(hbuf + ehdr->e_phoff);
224 phdp = (Elf_Phdr *)(hbuf + ehdr->e_phoff);
H A Dlibrary_mquery.c116 char hbuf[4096], *exec_start; local
147 _dl_read(libfile, hbuf, sizeof(hbuf));
148 ehdr = (Elf_Ehdr *)hbuf;
171 phdp = (Elf_Phdr *)(hbuf + ehdr->e_phoff);
312 phdp = (Elf_Phdr *)(hbuf + ehdr->e_phoff);
/openbsd-current/usr.sbin/traceroute/
H A Dworker.c580 char hbuf[NI_MAXHOST]; local
586 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
587 strlcpy(hbuf, "invalid", sizeof(hbuf));
589 hbuf);
680 char hbuf[NI_MAXHOST]; local
683 tr_res->hbuf, sizeof(tr_res->hbuf), NULL, 0, NI_NUMERICHOST) != 0)
684 strlcpy(tr_res->hbuf, "invali
[all...]
/openbsd-current/usr.sbin/ldpd/
H A Dprintconf.c200 char hbuf[NI_MAXHOST]; local
203 hbuf, sizeof(hbuf)) == NULL)
206 printf(" %s", hbuf);
/openbsd-current/usr.bin/mandoc/
H A Dtbl_html.c122 char hbuf[4], vbuf[4]; local
194 (void)snprintf(hbuf, sizeof(hbuf),
196 hspans = hbuf;
/openbsd-current/usr.sbin/trpt/
H A Dtrpt.c312 char hbuf[INET6_ADDRSTRLEN]; local
334 hbuf, sizeof(hbuf)), ntohs(ti->ti_sport));
337 hbuf, sizeof(hbuf)), ntohs(ti->ti_dport));
/openbsd-current/usr.bin/netstat/
H A Dinet6.c957 char hbuf[NI_MAXHOST]; local
998 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0)
999 strlcpy(hbuf, "?", sizeof hbuf);
1000 strlcpy(line, hbuf, sizeof(line));
/openbsd-current/sbin/slaacd/
H A Dengine.c1378 const char *hbuf; local
1386 hbuf = sin6_to_str(&ra->from);
1389 hbuf);
1399 log_debug("RA from non link local address %s", hbuf);
1405 hbuf);
1422 nd_ra->nd_ra_type, nd_ra->nd_ra_code, hbuf, len);
1426 hbuf);
1684 const char *hbuf; local
1687 hbuf = sin6_to_str(&ra->from);
1690 log_warnx("RA from non link local address %s", hbuf);
2153 const char *hbuf; local
2246 const char *hbuf; local
2329 const char *hbuf; local
2428 const char *hbuf; local
2489 const char *hbuf; local
2533 const char *hbuf; local
[all...]
/openbsd-current/usr.sbin/npppd/l2tp/
H A Dl2tpd.c264 char hbuf[NI_MAXHOST + NI_MAXSERV + 16]; local
298 _this->bind.sin6.sin6_len, hbuf, sizeof(hbuf)));
394 _this->bind.sin6.sin6_len, hbuf, sizeof(hbuf)), _this->tun_name);
436 char hbuf[NI_MAXHOST + NI_MAXSERV + 16]; local
444 _this->bind.sin6.sin6_len, hbuf, sizeof(hbuf)));
/openbsd-current/usr.bin/telnet/
H A Dcommands.c1459 char hbuf[HOST_NAME_MAX+1];
1462 gethostname(hbuf, sizeof hbuf);
1464 if (asprintf (&cp, "%s%s", hbuf, cp2) == -1)
1842 char hbuf[NI_MAXHOST];
1844 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
1846 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
1848 printf("Trying %s...\r\n", hbuf);
1452 char hbuf[HOST_NAME_MAX+1]; local
1835 char hbuf[NI_MAXHOST]; local
1885 char hbuf[NI_MAXHOST]; local
[all...]

Completed in 242 milliseconds

123