Searched refs:hbuf (Results 51 - 64 of 64) sorted by relevance

123

/openbsd-current/usr.sbin/tftpd/
H A Dtftpd.c1628 static char hbuf[NI_MAXHOST]; local
1630 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf),
1632 strlcpy(hbuf, "0.0.0.0", sizeof(hbuf));
1634 return(hbuf);
/openbsd-current/usr.bin/fstat/
H A Dfstat.c575 static char hbuf[NI_MAXHOST]; local
590 hbuf, sizeof(hbuf), NULL, 0, niflags))
593 return hbuf;
/openbsd-current/sbin/ipsecctl/
H A Dpfkdump.c320 char hbuf[NI_MAXHOST]; local
325 else if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0,
329 printf("%s", hbuf);
H A Dparse.y1699 char hbuf[NI_MAXHOST];
1724 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST)) {
1730 if (asprintf(&ipa->name, "%s/%d", hbuf, prefixlen) == -1)
1733 if ((ipa->name = strdup(hbuf)) == NULL)
1783 char hbuf[NI_MAXHOST];
1816 error = getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
1817 sizeof(hbuf), NULL, 0, NI_NUMERICHOST);
1820 ipa->name = strdup(hbuf);
/openbsd-current/sbin/iked/
H A Dparse.y2025 char hbuf[NI_MAXHOST];
2046 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST)) {
2052 if (asprintf(&ipa->name, "%s/%d", hbuf, mask) == -1)
2055 if ((ipa->name = strdup(hbuf)) == NULL)
2070 char hbuf[NI_MAXHOST];
2088 error = getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
2089 sizeof(hbuf), NULL, 0, NI_NUMERICHOST);
2092 ipa->name = strdup(hbuf);
/openbsd-current/sbin/ping/
H A Dping.c258 char *e, *target, hbuf[NI_MAXHOST], *source = NULL; local
488 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
489 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
490 strlcpy(hbuf, "?", sizeof(hbuf));
492 "addresses; using %s", hostname, hbuf);
/openbsd-current/sbin/ifconfig/
H A Difconfig.c3589 char hbuf[NI_MAXHOST]; local
3605 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0)
3606 strlcpy(hbuf, "", sizeof hbuf);
3607 printf("\tinet6 %s", hbuf);
3623 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0)
3624 strlcpy(hbuf, "", sizeof hbuf);
3950 char hbuf[NI_MAXHOST]; local
5937 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
[all...]
/openbsd-current/usr.bin/tcpbench/
H A Dtcpbench.c236 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
244 if ((herr = getnameinfo(addr, alen, hbuf, sizeof(hbuf),
251 snprintf(buf, len, "[%s]:%s", hbuf, pbuf);
/openbsd-current/sbin/unwind/
H A Dfrontend.c1229 static char hbuf[NI_MAXHOST], buf[NI_MAXHOST]; local
1231 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0,
1238 snprintf(buf, sizeof(buf), "[%s]:%d", hbuf, ntohs(
1241 snprintf(buf, sizeof(buf), "[%s]:%d", hbuf, ntohs(
/openbsd-current/usr.sbin/inetd/
H A Dinetd.c1395 char hbuf[NI_MAXHOST]; local
1399 if (getnameinfo((struct sockaddr *)&ss, size, hbuf,
1400 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) == 0)
1401 setproctitle("-%s [%s]", a, hbuf);
/openbsd-current/usr.sbin/relayd/
H A Drelay_http.c1193 char tmbuf[32], hbuf[128]; local
1214 if (print_host(&rlay->rl_conf.ss, hbuf, sizeof(hbuf)) == NULL)
1252 RELAYD_SERVERNAME, hbuf, ntohs(rlay->rl_conf.port))) == -1)
/openbsd-current/sys/net/
H A Dbpf.c457 caddr_t hbuf; local
558 hbuf = d->bd_hbuf;
571 error = uiomove(hbuf, hlen, uio);
577 d->bd_fbuf = hbuf;
/openbsd-current/sbin/route/
H A Droute.c2256 char hbuf[NI_MAXHOST]; local
2313 gateway6.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
2321 INET6_ADDRSTRLEN), prefixlen, hbuf);
/openbsd-current/gnu/usr.bin/cvs/src/
H A Dclient.c3916 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
3941 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf),
3944 current_parsed_root->hostname, hbuf, sbuf);
3956 getnameinfo(res0->ai_addr, res0->ai_addrlen, hbuf, sizeof(hbuf),
3959 current_parsed_root->hostname, hbuf, sbuf,
3890 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local

Completed in 404 milliseconds

123