Home
last modified time | relevance | path

Searched refs:hbuf (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-9-stable/usr.sbin/traceroute6/
Dtraceroute6.c370 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local
633 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
634 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
635 strlcpy(hbuf, "?", sizeof(hbuf));
637 "addresses; using %s\n", hostname, hbuf);
892 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf,
893 sizeof(hbuf), NULL, 0, NI_NUMERICHOST))
894 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
896 fprintf(stderr, " to %s (%s)", hostname, hbuf);
1196 char hbuf[NI_MAXHOST]; local
[all …]
/freebsd-9-stable/contrib/sendmail/src/
Dsasl.c249 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local
267 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags) != 0)
275 if (sm_strlcpy(hbuf, inet_ntoa(addr->sin.sin_addr), sizeof(hbuf))
276 >= sizeof(hbuf))
284 if (outlen < strlen(hbuf) + strlen(pbuf) + 2)
289 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
Ddaemon.c3415 static char hbuf[MAXNAME + MAXAUTHINFO + 11]; local
3436 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName,
3439 sm_dprintf("getauthinfo: %s\n", hbuf);
3440 return hbuf;
3706 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf));
3707 cleanstrcpy(&hbuf[6], p, MAXAUTHINFO);
3710 cleanstrcpy(hbuf, p, MAXAUTHINFO);
3711 len = strlen(hbuf);
3712 (void) sm_strlcpyn(&hbuf[len], sizeof(hbuf) - len, 2, "@",
3745 (void) sm_strlcpy(hbuf, RealHostName, sizeof(hbuf));
[all …]
Dheaders.c201 char hbuf[50]; local
203 (void) expand(fvalue, hbuf, sizeof(hbuf), e);
204 for (p = hbuf; isascii(*p) && isspace(*p); )
1121 char hbuf[MAXNAME + 1]; local
1152 name = hbuf;
1153 (void) sm_snprintf(hbuf, sizeof(hbuf), "%.80s", RealHostName);
1156 p = &hbuf[strlen(hbuf)];
1157 (void) sm_snprintf(p, SPACELEFT(hbuf, p),
Dparseaddr.c1967 char hbuf[MAXNAME + 1]; local
1980 hbuf[0] = '\0';
2035 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false);
2051 a->q_host = sm_rpool_strdup_x(e->e_rpool, hbuf);
2052 if (strchr(hbuf, '.') != NULL)
2055 hbuf);
2056 setstat(dsntoexitstat(hbuf));
2058 else if (isascii(hbuf[0]) && isdigit(hbuf[0]))
2060 setstat(atoi(hbuf));
2065 if (sm_strcasecmp(ep->ec_name, hbuf) == 0)
[all …]
/freebsd-9-stable/lib/libc/net/
Drcmdsh.c72 static char hbuf[NI_MAXHOST]; local
99 strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1);
100 hbuf[sizeof(hbuf) - 1] = '\0';
101 *ahost = hbuf;
/freebsd-9-stable/usr.bin/pr/
Dpr.c187 char *hbuf; in onecol() local
209 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { in onecol()
214 ohbuf = hbuf + offst; in onecol()
221 (void)memset(hbuf, (int)' ', offst); in onecol()
261 prhead(hbuf, fname, pagecnt)) in onecol()
340 char *hbuf; in vertcol() local
360 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) { in vertcol()
364 ohbuf = hbuf + offst; in vertcol()
366 (void)memset(hbuf, (int)' ', offst); in vertcol()
535 if (!nohead && prhead(hbuf, fname, pagecnt)) in vertcol()
[all …]
/freebsd-9-stable/lib/libfetch/
Dhttp.c527 http_next_header(conn_t *conn, http_headerbuf_t *hbuf, const char **p) in http_next_header() argument
540 if (hbuf->bufsize < conn->buflen + 1) { in http_next_header()
541 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header()
543 hbuf->bufsize = conn->buflen + 1; in http_next_header()
545 strcpy(hbuf->buf, conn->buf); in http_next_header()
546 hbuf->buflen = conn->buflen; in http_next_header()
567 len = hbuf->buflen + conn->buflen; in http_next_header()
568 if (hbuf->bufsize < len + 1) { in http_next_header()
570 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header()
572 hbuf->bufsize = len + 1; in http_next_header()
[all …]
/freebsd-9-stable/tools/regression/lib/libc/resolv/
Dresolv.c107 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; in resolv_getaddrinfo() local
123 memset(hbuf, 0, sizeof(hbuf)); in resolv_getaddrinfo()
125 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), in resolv_getaddrinfo()
129 "%p: reverse %s %s\n", self, hbuf, pbuf); in resolv_getaddrinfo()
/freebsd-9-stable/contrib/sendmail/libmilter/
Dexample.c52 char hbuf[1024]; local
74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host);
75 smfi_addheader(ctx, "X-Archived", hbuf);
/freebsd-9-stable/usr.sbin/faithd/
Dprefix.c131 char hbuf[NI_MAXHOST]; in prefix_string() local
134 hbuf, sizeof(hbuf), NULL, 0, niflags)) in prefix_string()
136 snprintf(buf, sizeof(buf), "%s/%d", hbuf, prefix->l); in prefix_string()
Dfaithd.c837 char hbuf[NI_MAXHOST];
839 hbuf, sizeof(hbuf), NULL, 0,
841 syslog(LOG_INFO, "my interface: %s %s", hbuf,
/freebsd-9-stable/usr.sbin/sysinstall/
Dmedia.c317 char *cp, hbuf[MAXHOSTNAMELEN], *hostname, *dir; in mediaSetFTP() local
364 SAFE_STRCPY(hbuf, cp + 6); in mediaSetFTP()
365 hostname = hbuf; in mediaSetFTP()
464 char *cp, *idx, hbuf[MAXHOSTNAMELEN], *hostname; in mediaSetHTTP() local
482 SAFE_STRCPY(hbuf, cp); in mediaSetHTTP()
483 hostname = hbuf; in mediaSetHTTP()
521 char *cp, hbuf[MAXPATHLEN], *hostname, *dir; in mediaSetHTTPDirect() local
564 SAFE_STRCPY(hbuf, cp + 7); in mediaSetHTTPDirect()
565 hostname = hbuf; in mediaSetHTTPDirect()
/freebsd-9-stable/usr.sbin/config/
Dmkoptions.c293 static char hbuf[MAXPATHLEN]; in tooption() local
307 (void)strlcpy(hbuf, path(nbuf), sizeof(hbuf)); in tooption()
308 return (hbuf); in tooption()
/freebsd-9-stable/lib/libc/resolv/
Dres_send.c1104 char hbuf[NI_MAXHOST]; in Aerror() local
1108 if (getnameinfo(address, alen, hbuf, sizeof(hbuf), in Aerror()
1110 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror()
1111 hbuf[sizeof(hbuf) - 1] = '\0'; in Aerror()
1116 string, hbuf, sbuf, strerror(error)); in Aerror()
/freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/
Dinflate.c394 hbuf[0] = (unsigned char)(word); \
395 hbuf[1] = (unsigned char)((word) >> 8); \
396 check = crc32(check, hbuf, 2); \
401 hbuf[0] = (unsigned char)(word); \
402 hbuf[1] = (unsigned char)((word) >> 8); \
403 hbuf[2] = (unsigned char)((word) >> 16); \
404 hbuf[3] = (unsigned char)((word) >> 24); \
405 check = crc32(check, hbuf, 4); \
579 unsigned char hbuf[4]; /* buffer for gzip header crc calculation */ local
/freebsd-9-stable/lib/libz/
Dinflate.c443 hbuf[0] = (unsigned char)(word); \
444 hbuf[1] = (unsigned char)((word) >> 8); \
445 check = crc32(check, hbuf, 2); \
450 hbuf[0] = (unsigned char)(word); \
451 hbuf[1] = (unsigned char)((word) >> 8); \
452 hbuf[2] = (unsigned char)((word) >> 16); \
453 hbuf[3] = (unsigned char)((word) >> 24); \
454 check = crc32(check, hbuf, 4); \
623 unsigned char hbuf[4]; /* buffer for gzip header crc calculation */ local
/freebsd-9-stable/usr.sbin/ndp/
Dndp.c829 static char hbuf[NI_MAXHOST]; in ether_str() local
833 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)), in ether_str()
834 sizeof(hbuf)); in ether_str()
837 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n); in ether_str()
839 snprintf(hbuf, sizeof(hbuf), "(incomplete)"); in ether_str()
841 return(hbuf); in ether_str()
/freebsd-9-stable/contrib/tcpdump/
Dprint-icmp6.c1257 char hbuf[NI_MAXHOST]; in icmp6_rrenum_print() local
1325 if (inet_ntop(AF_INET6, &match->rpm_prefix, hbuf, sizeof(hbuf))) in icmp6_rrenum_print()
1326 printf(",%s/%u", hbuf, match->rpm_matchlen); in icmp6_rrenum_print()
1368 if (inet_ntop(AF_INET6, &use->rpu_prefix, hbuf, in icmp6_rrenum_print()
1369 sizeof(hbuf))) in icmp6_rrenum_print()
1370 printf("%s/%u/%u", hbuf, use->rpu_uselen, in icmp6_rrenum_print()
/freebsd-9-stable/libexec/tftpd/
Dtftpd.c348 char hbuf[NI_MAXHOST]; in main() local
354 hbuf, sizeof(hbuf), NULL, 0, in main()
356 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf); in main()
/freebsd-9-stable/contrib/tcsh/
Dtc.func.c1855 static char hbuf[NI_MAXHOST]; local
1870 getnameinfo((struct sockaddr *)&saddr, len, hbuf, sizeof(hbuf),
1872 host = hbuf;
1944 strncpy(hbuf, res->ai_canonname, sizeof(hbuf));
1945 hbuf[sizeof(hbuf) - 1] = '\0';
1946 host = hbuf;
/freebsd-9-stable/usr.sbin/rtadvctl/
Drtadvctl.c870 char hbuf[NI_MAXHOST]; in action_show_dnssl() local
888 dname_labeldec(hbuf, sizeof(hbuf), in action_show_dnssl()
891 hbuf, sec2str(ltime, ssbuf)); in action_show_dnssl()
/freebsd-9-stable/contrib/bind9/lib/dns/rdata/generic/
Dloc_29.c470 char hbuf[sizeof("90000000m")]; in totext_loc() local
497 sprintf(hbuf, "%lum", (hp>>4) * poweroften[(hp&0x0f)-2]); in totext_loc()
499 sprintf(hbuf, "0.%02lum", (hp>>4) * poweroften[(hp&0x0f)]); in totext_loc()
558 sbuf, hbuf, vbuf); in totext_loc()
/freebsd-9-stable/crypto/heimdal/appl/telnet/telnet/
Dcommands.c1583 char hbuf[256+1]; in env_init() local
1588 gethostname(hbuf, 256); in env_init()
1589 hbuf[256] = '\0'; in env_init()
1592 if (strchr(hbuf, '.') == 0) { in env_init()
1598 error = getaddrinfo (hbuf, NULL, &hints, &ai); in env_init()
1602 strlcpy (hbuf, in env_init()
1611 error = asprintf (&cp, "%s%s", hbuf, cp2); in env_init()
/freebsd-9-stable/usr.sbin/rtsold/
Drtsol.c684 char hbuf[NI_MAXHOST]; in make_rsid() local
692 rai->rai_saddr.sin6_len, hbuf, sizeof(hbuf), NULL, 0, in make_rsid()
695 sprintf(rsid, "%s:%s:[%s]", ifname, origin, hbuf); in make_rsid()

12