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

123

/openbsd-current/usr.sbin/traceroute/
H A Dtraceroute.h124 char hbuf[NI_MAXHOST]; member in struct:tr_result
/openbsd-current/usr.sbin/ypldap/
H A Dldapclient.c561 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
569 if (getnameinfo(sa, SA_LEN(sa), hbuf, sizeof(hbuf), sbuf,
578 log_warn("connect to %s port %s failed", hbuf, sbuf);
618 idm->idm_name, hbuf, err);
646 " %d", idm->idm_name, hbuf, rc);
695 log_debug("directory %s(%s) errored out in %s", idm->idm_name, hbuf,
/openbsd-current/sbin/dhcpleased/
H A Dengine.c743 char hbuf[INET_ADDRSTRLEN]; local
943 hbuf, sizeof(hbuf)));
966 inet_ntop(AF_INET, &subnet_mask, hbuf,
967 sizeof(hbuf)));
992 hbuf, sizeof(hbuf)));
1020 &nameservers[i], hbuf,
1021 sizeof(hbuf)), i + 1,
1866 char hbuf[INET_ADDRSTRLE local
[all...]
H A Ddhcpleased.c1142 static char hbuf[NI_MAXHOST]; local
1145 error = getnameinfo((struct sockaddr *)sin, sin->sin_len, hbuf,
1146 sizeof(hbuf), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV);
1149 strlcpy(hbuf, "unknown", sizeof(hbuf));
1151 return hbuf;
/openbsd-current/usr.bin/netstat/
H A Dshow.c559 char hbuf[NI_MAXHOST]; local
636 hbuf, sizeof(hbuf), NULL, 0, flag);
638 snprintf(hbuf, sizeof(hbuf), "invalid");
640 snprintf(line, sizeof(line), "%s/%d", hbuf, masklen);
/openbsd-current/sbin/route/
H A Dshow.c624 char hbuf[NI_MAXHOST]; local
701 hbuf, sizeof(hbuf), NULL, 0, flag);
703 snprintf(hbuf, sizeof(hbuf), "invalid");
705 snprintf(line, sizeof(line), "%s/%d", hbuf, masklen);
/openbsd-current/usr.sbin/arp/
H A Darp.c586 static char hbuf[NI_MAXHOST]; local
591 snprintf(hbuf, sizeof(hbuf), "%02x:%02x:%02x:%02x:%02x:%02x",
594 snprintf(hbuf, sizeof(hbuf), "(incomplete)");
596 return(hbuf);
/openbsd-current/usr.sbin/ndp/
H A Dndp.c690 static char hbuf[NI_MAXHOST]; local
695 snprintf(hbuf, sizeof(hbuf), "%02x:%02x:%02x:%02x:%02x:%02x",
698 snprintf(hbuf, sizeof(hbuf), "(incomplete)");
700 return(hbuf);
/openbsd-current/usr.sbin/rad/
H A Dengine.c489 const char *hbuf; local
493 hbuf = sin6_to_str(&rs->from);
495 log_debug("got RS from %s on %s", hbuf, if_indextoname(rs->if_index,
505 log_warnx("RA from invalid address %s on %s", hbuf,
512 hbuf);
523 hbuf);
H A Drad.c801 static char hbuf[NI_MAXHOST]; local
804 error = getnameinfo((struct sockaddr *)sin6, sin6->sin6_len, hbuf,
805 sizeof(hbuf), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV);
808 strlcpy(hbuf, "unknown", sizeof(hbuf));
810 return hbuf;
/openbsd-current/usr.sbin/npppd/npppd/
H A Dppp.c194 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; local
196 hbuf[0] = 0;
204 ((struct sockaddr *)&_this->phy_info)->sa_len, hbuf,
205 sizeof(hbuf), sbuf, sizeof(sbuf), flag) != 0) {
208 strlcpy(hbuf, "0.0.0.0", sizeof(hbuf));
212 snprintf(buf, lbuf, "%s:%s", hbuf, sbuf);
214 snprintf(buf, lbuf, "%s", hbuf);
/openbsd-current/usr.sbin/radiusd/
H A Dradiusd.c202 char hbuf[NI_MAXHOST]; local
207 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) {
214 hbuf, (int)htons(l->addr.ipv4.sin_port));
220 hbuf, (int)htons(l->addr.ipv4.sin_port));
225 log_info("Start listening on %s:%d/udp", hbuf,
228 log_info("Start listening on [%s]:%d/udp", hbuf,
262 char hbuf[NI_MAXHOST]; local
270 hbuf, sizeof(hbuf), NUL
[all...]
/openbsd-current/libexec/ftpd/
H A Dftpd.c1423 char hbuf[HOST_NAME_MAX+1], pbuf[10]; local
1426 data_source.su_len, hbuf, sizeof(hbuf), pbuf,
1434 hbuf, pbuf, strerror(errno));
1765 char hbuf[HOST_NAME_MAX+1]; local
1771 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST);
1773 if (error == 0 && strcmp(remotehost, hbuf) != 0)
1774 printf(" (%s)", hbuf);
1868 hbuf, sizeo
2117 char hbuf[sizeof(remotehost)]; local
[all...]
/openbsd-current/usr.sbin/npppd/l2tp/
H A Dl2tp_ctrl.c641 char hbuf[NI_MAXHOST + NI_MAXSERV + 16]; local
778 ctrl->peer.ss_len, hbuf, sizeof(hbuf)));
1029 addrport_tostring(peer, peer->sa_len, hbuf, sizeof(hbuf)), errmsg);
1423 char buf[L2TP_AVP_MAXSIZ], hbuf[HOST_NAME_MAX+1]; local
1461 gethostname(hbuf, sizeof(hbuf));
1462 val = hbuf;
/openbsd-current/gnu/usr.bin/perl/cpan/Compress-Raw-Zlib/zlib-src/
H A Dinflate.c25 * - Make hbuf[] unsigned char to match parameter type in inflate.c
463 hbuf[0] = (unsigned char)(word); \
464 hbuf[1] = (unsigned char)((word) >> 8); \
465 check = crc32(check, hbuf, 2); \
470 hbuf[0] = (unsigned char)(word); \
471 hbuf[1] = (unsigned char)((word) >> 8); \
472 hbuf[2] = (unsigned char)((word) >> 16); \
473 hbuf[3] = (unsigned char)((word) >> 24); \
474 check = crc32(check, hbuf, 4); \
643 unsigned char hbuf[ local
[all...]
/openbsd-current/usr.sbin/relayd/
H A Drelayd.c1327 char hbuf[PATH_MAX]; local
1363 print_host(&rlay->rl_conf.ss, hbuf, sizeof(hbuf)) == NULL)
1366 strlcpy(hbuf, name, sizeof(hbuf)) >= sizeof(hbuf))
1370 "/etc/ssl/%s:%u.crt", hbuf, useport) == -1)
1374 "/etc/ssl/%s.crt", hbuf) == -1)
1384 "/etc/ssl/private/%s:%u.key", hbuf, useport) == -1)
1388 "/etc/ssl/private/%s.key", hbuf)
[all...]
/openbsd-current/usr.bin/ftp/
H A Dftp.c113 char hbuf[NI_MAXHOST]; local
186 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
187 strlcpy(hbuf, "unknown", sizeof(hbuf));
189 fprintf(ttyout, "Trying %s...\n", hbuf);
221 hbuf, sizeof(hbuf), NULL, 0,
223 strlcpy(hbuf, "(unknown)",
224 sizeof(hbuf));
[all...]
H A Dfetch.c308 char pbuf[NI_MAXSERV], hbuf[NI_MAXHOST], *cp, *portnum, *path, ststr[4]; local
567 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
568 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
569 strlcpy(hbuf, "(unknown)", sizeof(hbuf));
571 fprintf(ttyout, "Trying %s...\n", hbuf);
/openbsd-current/regress/sbin/ifconfig/
H A Difaddr.c1304 char hbuf[NI_MAXHOST]; local
1320 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0)
1321 strlcpy(hbuf, "", sizeof hbuf);
1322 printf("\tinet6 %s", hbuf);
1338 hbuf, sizeof(hbuf), NULL, 0, niflag) != 0)
1339 strlcpy(hbuf, "", sizeof hbuf);
[all...]
/openbsd-current/usr.sbin/httpd/
H A Dserver_http.c805 char hbuf[HOST_NAME_MAX+1]; local
817 if ((size_t)snprintf(hbuf, sizeof(hbuf),
818 "%s:%u", buf, port) >= sizeof(hbuf))
822 if ((size_t)snprintf(hbuf, sizeof(hbuf),
823 "[%s]:%u", buf, port) >= sizeof(hbuf))
828 if (strlcpy(buf, hbuf, len) >= len)
891 char tmbuf[32], hbuf[128], *hstsheader = NULL; local
913 if (print_host(&srv_conf->ss, hbuf, sizeo
[all...]
/openbsd-current/bin/csh/
H A Dcsh.c822 Char buf[BUFSIZ], hbuf[BUFSIZ], *hfile; local
833 (void) Strlcpy(hbuf, shist->vec[0], sizeof hbuf/sizeof(Char));
835 (void) Strlcpy(hbuf, shist->vec[0], sizeof hbuf/sizeof(Char));
856 dumphist[2] = hbuf;
/openbsd-current/sbin/slaacd/
H A Dslaacd.c850 static char hbuf[NI_MAXHOST]; local
853 error = getnameinfo((struct sockaddr *)sin6, sin6->sin6_len, hbuf,
854 sizeof(hbuf), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV);
857 strlcpy(hbuf, "unknown", sizeof(hbuf));
859 return hbuf;
/openbsd-current/sbin/dhcp6leased/
H A Ddhcp6leased.c769 static char hbuf[NI_MAXHOST]; local
772 error = getnameinfo((struct sockaddr *)sin6, sin6->sin6_len, hbuf,
773 sizeof(hbuf), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV);
776 strlcpy(hbuf, "unknown", sizeof(hbuf));
778 return hbuf;
/openbsd-current/sys/lib/libz/
H A Dinflate.c25 * - Make hbuf[] unsigned char to match parameter type in inflate.c
428 hbuf[0] = (unsigned char)(word); \
429 hbuf[1] = (unsigned char)((word) >> 8); \
430 check = crc32(check, hbuf, 2); \
435 hbuf[0] = (unsigned char)(word); \
436 hbuf[1] = (unsigned char)((word) >> 8); \
437 hbuf[2] = (unsigned char)((word) >> 16); \
438 hbuf[3] = (unsigned char)((word) >> 24); \
439 check = crc32(check, hbuf, 4); \
605 unsigned char hbuf[ local
[all...]
/openbsd-current/lib/libz/
H A Dinflate.c25 * - Make hbuf[] unsigned char to match parameter type in inflate.c
428 hbuf[0] = (unsigned char)(word); \
429 hbuf[1] = (unsigned char)((word) >> 8); \
430 check = crc32(check, hbuf, 2); \
435 hbuf[0] = (unsigned char)(word); \
436 hbuf[1] = (unsigned char)((word) >> 8); \
437 hbuf[2] = (unsigned char)((word) >> 16); \
438 hbuf[3] = (unsigned char)((word) >> 24); \
439 check = crc32(check, hbuf, 4); \
605 unsigned char hbuf[ local
[all...]

Completed in 349 milliseconds

123