/netbsd-current/sbin/ifconfig/ |
H A D | af_inet.c | 112 char hbuf[NI_MAXHOST]; local 121 hbuf, sizeof(hbuf), NULL, 0, niflag)) 122 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? */ 123 printf("\tinet %s", hbuf); 130 hbuf, sizeof(hbuf), NULL, 0, niflag)) 131 strlcpy(hbuf, "", sizeof(hbuf)); /* som [all...] |
H A D | af_inet6.c | 266 char hbuf[NI_MAXHOST]; local 275 hbuf, sizeof(hbuf), NULL, 0, niflag)) 276 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? */ 277 printf("\tinet6 %s", hbuf); 286 hbuf[0] = '\0'; 288 hbuf, sizeof(hbuf), NULL, 0, niflag)) 289 strlcpy(hbuf, "", sizeo [all...] |
H A D | util.c | 245 char hbuf[NI_MAXHOST]; local 287 hbuf, sizeof(hbuf), NULL, 0, 289 hbuf[0] != '\0') { 291 print_active_only ? "address:" : "link", hbuf);
|
/netbsd-current/external/mpl/dhcp/dist/common/ |
H A D | fddi.c | 57 memcpy (fh.fddi_dhost, &to -> hbuf [1], 60 &interface -> hw_address.hbuf [1], sizeof (fh.fddi_shost)); 86 from -> hbuf [0] = HTYPE_FDDI; 87 memcpy (&from -> hbuf [1], fh.fddi_shost, sizeof fh.fddi_shost);
|
H A D | ethernet.c | 52 memcpy (eh.ether_dhost, &to -> hbuf [1], 57 memcpy (eh.ether_shost, &interface -> hw_address.hbuf [1], 86 memcpy (&from -> hbuf [1], eh.ether_shost, sizeof (eh.ether_shost)); 87 from -> hbuf [0] = ARPHRD_ETHER;
|
H A D | lpf.c | 148 print_hw_addr (info -> hw_address.hbuf [0], 150 &info -> hw_address.hbuf [1]), 170 print_hw_addr (info -> hw_address.hbuf [0], 172 &info -> hw_address.hbuf [1]), 219 if (info -> hw_address.hbuf [0] == HTYPE_IEEE802) 228 print_hw_addr (info -> hw_address.hbuf [0], 230 &info -> hw_address.hbuf [1]), 246 print_hw_addr (info -> hw_address.hbuf [0], 248 &info -> hw_address.hbuf [1]), 555 hw->hbuf[ [all...] |
H A D | nit.c | 107 info -> hw_address.hbuf [0] = ARPHRD_ETHER; 108 memcpy (&info -> hw_address.hbuf [1], 147 print_hw_addr (info -> hw_address.hbuf [0], 149 &info -> hw_address.hbuf [1]), 166 print_hw_addr (info -> hw_address.hbuf [0], 168 &info -> hw_address.hbuf [1]), 254 print_hw_addr (info -> hw_address.hbuf [0], 256 &info -> hw_address.hbuf [1]), 272 print_hw_addr (info -> hw_address.hbuf [0], 274 &info -> hw_address.hbuf [ [all...] |
H A D | upf.c | 111 info -> hw_address.hbuf [0] = ARPHRD_ETHER; 112 memcpy (&info -> hw_address.hbuf [1], param.end_addr, 6); 132 print_hw_addr (info -> hw_address.hbuf [0], 134 &info -> hw_address.hbuf [1]), 150 print_hw_addr (info -> hw_address.hbuf [0], 152 &info -> hw_address.hbuf [1]), 219 print_hw_addr (info -> hw_address.hbuf [0], 221 &info -> hw_address.hbuf [1]), 235 print_hw_addr (info -> hw_address.hbuf [0], 237 &info -> hw_address.hbuf [ [all...] |
H A D | dlpi.c | 231 info -> hw_address.hbuf [0] = HTYPE_ETHER; 235 info -> hw_address.hbuf [0] = HTYPE_IEEE802; 238 info -> hw_address.hbuf [0] = HTYPE_FDDI; 253 memcpy (info -> dlpi_broadcast_addr.hbuf, 290 memcpy (&info -> hw_address.hbuf [1], 373 print_hw_addr (info -> hw_address.hbuf [0], 375 &info -> hw_address.hbuf [1]), 403 print_hw_addr (info -> hw_address.hbuf [0], 405 &info -> hw_address.hbuf [1]), 492 print_hw_addr (info -> hw_address.hbuf [ [all...] |
H A D | bpf.c | 145 print_hw_addr (info -> hw_address.hbuf [0], 147 &info -> hw_address.hbuf [1]), 166 print_hw_addr (info -> hw_address.hbuf [0], 168 &info -> hw_address.hbuf [1]), 376 print_hw_addr (info -> hw_address.hbuf [0], 378 &info -> hw_address.hbuf [1]), 393 print_hw_addr (info -> hw_address.hbuf [0], 395 &info -> hw_address.hbuf [1]), 684 hw->hbuf[0] = HTYPE_ETHER; 685 memcpy(&hw->hbuf[ [all...] |
H A D | ctrace.c | 124 print_hw_addr (ip -> hw_address.hbuf [0], 126 &ip -> hw_address.hbuf [1]), 133 print_hw_addr (ip -> hw_address.hbuf [0], 135 &ip -> hw_address.hbuf [1]),
|
/netbsd-current/usr.sbin/rtadvd/ |
H A D | dump.c | 80 static char hbuf[NI_MAXHOST]; local 84 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) 85 snprintf(hbuf, sizeof(hbuf), "<invalid>"); 87 snprintf(hbuf, sizeof(hbuf), "NONE"); 89 return(hbuf);
|
/netbsd-current/lib/libwrap/ |
H A D | socket.c | 63 static char hbuf[MAXHOSTNAMELEN + 1]; local 70 if (strchr(name, '.') == 0 || strlen(name) + 2 > sizeof(hbuf)) 71 strlcpy(hbuf, name, sizeof(hbuf)); 73 (void)snprintf(hbuf, sizeof(hbuf), "%s.", name); 74 return hbuf;
|
/netbsd-current/bin/dd/ |
H A D | misc.c | 194 char hbuf[7], nbuf[32]; local 222 if (humanize_number(hbuf, sizeof(hbuf), 226 ADDS(hbuf); 234 if (humanize_number(hbuf, sizeof(hbuf), 238 ADDS(hbuf); ADDS("/sec");
|
/netbsd-current/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 362 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local 508 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, 509 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) 510 strlcpy(hbuf, "?", sizeof(hbuf)); 512 hostname, hbuf); 661 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf, 662 sizeof(hbuf), NULL, 0, NI_NUMERICHOST)) 663 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); 930 char hbuf[NI_MAXHOST]; local 1075 char hbuf[NI_MAXHOST]; local [all...] |
/netbsd-current/usr.bin/pr/ |
H A D | pr.c | 183 char *hbuf = NULL; local 204 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) 207 ohbuf = hbuf + offst; 214 (void)memset(hbuf, (int)' ', offst); 256 prhead(hbuf, fname, pagecnt)) 312 free(hbuf); 345 char *hbuf = NULL; local 364 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL) 366 ohbuf = hbuf + offst; 368 (void)memset(hbuf, (in 663 char *hbuf = NULL; local 818 char *hbuf = NULL; local [all...] |
/netbsd-current/external/bsd/mdocml/dist/ |
H A D | tbl_html.c | 120 char hbuf[32], vbuf[32]; local 190 (void)snprintf(hbuf, sizeof(hbuf), 192 hspans = hbuf;
|
/netbsd-current/usr.bin/systat/ |
H A D | netcmds.c | 365 char hbuf[NI_MAXHOST]; local 376 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0, 378 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); 381 printw("%s ", hbuf);
|
/netbsd-current/lib/libc/net/ |
H A D | rcmd.c | 99 static char hbuf[MAXHOSTNAMELEN]; local 126 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf)); 127 *ahost = hbuf; 158 static char hbuf[MAXHOSTNAMELEN]; local 180 strlcpy(hbuf, res->ai_canonname, sizeof(hbuf)); 181 *ahost = hbuf; 244 char hbuf[NI_MAXHOST]; local 247 hbuf[ [all...] |
/netbsd-current/usr.bin/last/ |
H A D | want.c | 46 static char hbuf[512]; 47 hbuf[0] = '\0'; 48 (void)sockaddr_snprintf(hbuf, sizeof(hbuf), "%a", 50 return hbuf;
|
/netbsd-current/usr.bin/netstat/ |
H A D | if.c | 469 char hbuf[NI_MAXHOST]; /* for getnameinfo() */ local 477 if (getnameinfo((struct sockaddr *)&as6, as6.sin6_len, hbuf, 478 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) { 479 strlcpy(hbuf, "??", sizeof(hbuf)); 482 n = strlen(hbuf) < 17 ? 17 : strlen(hbuf); 485 printf("\n%25s %-*.*s ", "", n, n, hbuf); 519 char hbuf[NI_MAXHOST]; /* for getnameinfo() */ local 596 hbuf, sizeo [all...] |
/netbsd-current/libexec/rexecd/ |
H A D | rexecd.c | 128 char hbuf[NI_MAXHOST]; local 129 if (getnameinfo((struct sockaddr *)&from, fromlen, hbuf, 130 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) { 131 (void)strlcpy(hbuf, "invalid", sizeof(hbuf)); 136 hbuf);
|
/netbsd-current/usr.sbin/faithd/ |
H A D | prefix.c | 127 char hbuf[NI_MAXHOST]; local 130 hbuf, (socklen_t)sizeof(hbuf), NULL, 0, niflags)) 132 (void)snprintf(buf, sizeof(buf), "%s/%d", hbuf, prefix->l);
|
/netbsd-current/sbin/canconfig/ |
H A D | canconfig.c | 358 char hbuf[8]; local 371 humanize_number(hbuf, sizeof(hbuf), cltc.cltc_clock_freq, "Hz", 376 prefix, hbuf, 396 humanize_number(hbuf, sizeof(hbuf), bps, "bps", 398 printf(", %s", hbuf);
|
/netbsd-current/usr.sbin/trpt/ |
H A D | trpt.c | 393 char hbuf[MAXHOSTNAMELEN]; local 438 hbuf, sizeof(hbuf)); local 440 hbuf, ntohs(th->th_sport)); 448 hbuf, sizeof(hbuf)); local 450 hbuf, ntohs(th->th_dport));
|