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

123

/netbsd-6-1-5-RELEASE/dist/dhcp/common/
H A Dethernet.c58 memcpy (eh.ether_dhost, &to -> hbuf [1],
63 memcpy (eh.ether_shost, &interface -> hw_address.hbuf [1],
92 memcpy (&from -> hbuf [1], eh.ether_shost, sizeof (eh.ether_shost));
93 from -> hbuf [0] = ARPHRD_ETHER;
H A Dfddi.c68 memcpy (fh.fddi_dhost, &to -> hbuf [1],
71 &interface -> hw_address.hbuf [1], sizeof (fh.fddi_shost));
96 from -> hbuf [0] = HTYPE_FDDI;
98 memcpy (&from -> hbuf [1], fh.fddi_shost, sizeof fh.fddi_shost);
H A Dnit.c113 info -> hw_address.hbuf [0] = ARPHRD_ETHER;
114 memcpy (&info -> hw_address.hbuf [1],
153 print_hw_addr (info -> hw_address.hbuf [0],
155 &info -> hw_address.hbuf [1]),
172 print_hw_addr (info -> hw_address.hbuf [0],
174 &info -> hw_address.hbuf [1]),
256 print_hw_addr (info -> hw_address.hbuf [0],
258 &info -> hw_address.hbuf [1]),
274 print_hw_addr (info -> hw_address.hbuf [0],
276 &info -> hw_address.hbuf [
[all...]
H A Dupf.c117 info -> hw_address.hbuf [0] = ARPHRD_ETHER;
118 memcpy (&info -> hw_address.hbuf [1], param.end_addr, 6);
138 print_hw_addr (info -> hw_address.hbuf [0],
140 &info -> hw_address.hbuf [1]),
156 print_hw_addr (info -> hw_address.hbuf [0],
158 &info -> hw_address.hbuf [1]),
222 print_hw_addr (info -> hw_address.hbuf [0],
224 &info -> hw_address.hbuf [1]),
238 print_hw_addr (info -> hw_address.hbuf [0],
240 &info -> hw_address.hbuf [
[all...]
H A Dlpf.c128 print_hw_addr (info -> hw_address.hbuf [0],
130 &info -> hw_address.hbuf [1]),
150 print_hw_addr (info -> hw_address.hbuf [0],
152 &info -> hw_address.hbuf [1]),
180 if (info -> hw_address.hbuf [0] == HTYPE_IEEE802)
189 print_hw_addr (info -> hw_address.hbuf [0],
191 &info -> hw_address.hbuf [1]),
207 print_hw_addr (info -> hw_address.hbuf [0],
209 &info -> hw_address.hbuf [1]),
H A Ddlpi.c212 info -> hw_address.hbuf [0] = HTYPE_ETHER;
216 info -> hw_address.hbuf [0] = HTYPE_IEEE802;
219 info -> hw_address.hbuf [0] = HTYPE_FDDI;
234 memcpy (info -> dlpi_broadcast_addr.hbuf,
271 memcpy (&info -> hw_address.hbuf [1],
352 print_hw_addr (info -> hw_address.hbuf [0],
354 &info -> hw_address.hbuf [1]),
382 print_hw_addr (info -> hw_address.hbuf [0],
384 &info -> hw_address.hbuf [1]),
467 print_hw_addr (info -> hw_address.hbuf [
[all...]
H A Dbpf.c153 print_hw_addr (info -> hw_address.hbuf [0],
155 &info -> hw_address.hbuf [1]),
174 print_hw_addr (info -> hw_address.hbuf [0],
176 &info -> hw_address.hbuf [1]),
335 print_hw_addr (info -> hw_address.hbuf [0],
337 &info -> hw_address.hbuf [1]),
352 print_hw_addr (info -> hw_address.hbuf [0],
354 &info -> hw_address.hbuf [1]),
H A Dctrace.c116 print_hw_addr (ip -> hw_address.hbuf [0],
118 &ip -> hw_address.hbuf [1]),
125 print_hw_addr (ip -> hw_address.hbuf [0],
127 &ip -> hw_address.hbuf [1]),
H A Dpacket.c114 if (interface -> hw_address.hbuf [0] == HTYPE_IEEE802)
119 if (interface -> hw_address.hbuf [0] == HTYPE_FDDI)
199 if (interface -> hw_address.hbuf [0] == HTYPE_IEEE802)
204 if (interface -> hw_address.hbuf [0] == HTYPE_FDDI)
/netbsd-6-1-5-RELEASE/sbin/ifconfig/
H A Daf_inet.c85 char hbuf[NI_MAXHOST]; local
118 hbuf, sizeof(hbuf), NULL, 0, niflag))
119 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? */
120 printf("\tinet %s%s", alias ? "alias " : "", hbuf);
127 hbuf, sizeof(hbuf), NULL, 0, niflag))
128 strlcpy(hbuf, "", sizeof(hbuf)); /* som
[all...]
H A Daf_inet6.c279 char hbuf[NI_MAXHOST]; local
297 hbuf, sizeof(hbuf), NULL, 0, niflag))
298 strlcpy(hbuf, "", sizeof(hbuf)); /* some message? */
299 printf("\tinet6 %s", hbuf);
315 hbuf[0] = '\0';
317 hbuf, sizeof(hbuf), NULL, 0, niflag))
318 strlcpy(hbuf, "", sizeo
[all...]
H A Dutil.c245 char hbuf[NI_MAXHOST]; local
285 hbuf, sizeof(hbuf), NULL, 0,
287 hbuf[0] != '\0') {
289 print_active_only ? "address:" : "link", hbuf);
/netbsd-6-1-5-RELEASE/usr.sbin/traceroute6/
H A Dtraceroute6.c373 char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; local
561 if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf,
562 sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
563 strlcpy(hbuf, "?", sizeof(hbuf));
565 hostname, hbuf);
781 if (getnameinfo((struct sockaddr *)&Dst, Dst.sin6_len, hbuf,
782 sizeof(hbuf), NULL, 0, NI_NUMERICHOST))
783 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
1066 char hbuf[NI_MAXHOST]; local
1232 char hbuf[NI_MAXHOST]; local
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/rtadvd/
H A Ddump.c75 static char hbuf[NI_MAXHOST]; local
79 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0)
80 snprintf(hbuf, sizeof(hbuf), "<invalid>");
82 snprintf(hbuf, sizeof(hbuf), "NONE");
84 return(hbuf);
/netbsd-6-1-5-RELEASE/bin/dd/
H A Dmisc.c196 char hbuf[7], nbuf[32]; local
224 if (humanize_number(hbuf, sizeof(hbuf),
228 ADDS(hbuf);
236 if (humanize_number(hbuf, sizeof(hbuf),
240 ADDS(hbuf); ADDS("/sec");
/netbsd-6-1-5-RELEASE/lib/libwrap/
H A Dsocket.c63 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-6-1-5-RELEASE/usr.bin/pr/
H A Dpr.c177 char *hbuf = NULL; local
198 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL)
201 ohbuf = hbuf + offst;
208 (void)memset(hbuf, (int)' ', offst);
246 prhead(hbuf, fname, pagecnt))
301 free(hbuf);
334 char *hbuf = NULL; local
353 if ((hbuf = malloc((unsigned)(HDBUF + offst)*sizeof(char))) == NULL)
355 ohbuf = hbuf + offst;
357 (void)memset(hbuf, (in
644 char *hbuf = NULL; local
794 char *hbuf = NULL; local
[all...]
/netbsd-6-1-5-RELEASE/lib/libc/net/
H A Drcmd.c99 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-6-1-5-RELEASE/usr.bin/last/
H A Dwant.c46 static char hbuf[512];
47 hbuf[0] = '\0';
48 (void)sockaddr_snprintf(hbuf, sizeof(hbuf), "%a",
50 return hbuf;
/netbsd-6-1-5-RELEASE/usr.sbin/isdn/isdntrace/
H A Dtrace.c500 static char hbuf[256]; local
508 snprintf(hbuf, sizeof(hbuf),
518 snprintf(hbuf, sizeof(hbuf),
527 snprintf(hbuf, sizeof(hbuf),
535 for (i = strlen(hbuf); i <= NCOLS;)
536 hbuf[i++] = '-';
538 hbuf[
[all...]
/netbsd-6-1-5-RELEASE/libexec/rexecd/
H A Drexecd.c128 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-6-1-5-RELEASE/usr.bin/systat/
H A Dnetcmds.c383 char hbuf[NI_MAXHOST]; local
394 if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), NULL, 0,
396 strlcpy(hbuf, "(invalid)", sizeof(hbuf));
399 printw("%s ", hbuf);
/netbsd-6-1-5-RELEASE/usr.sbin/faithd/
H A Dprefix.c127 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-6-1-5-RELEASE/usr.bin/netstat/
H A Dif.c340 char hbuf[NI_MAXHOST]; /* for getnameinfo() */ local
436 hbuf, sizeof(hbuf), NULL, 0,
438 strlcpy(hbuf, "?", sizeof(hbuf));
440 cp = hbuf;
472 as6.sin6_len, hbuf,
473 sizeof(hbuf), NULL, 0,
475 strlcpy(hbuf, "??",
476 sizeof(hbuf));
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/trpt/
H A Dtrpt.c394 char hbuf[MAXHOSTNAMELEN]; local
439 hbuf, sizeof(hbuf)); local
441 hbuf, ntohs(th->th_sport));
449 hbuf, sizeof(hbuf)); local
451 hbuf, ntohs(th->th_dport));

Completed in 178 milliseconds

123