Home
last modified time | relevance | path

Searched refs:hostp (Results 1 – 19 of 19) sorted by relevance

/freebsd/sbin/ipf/libipf/
H A Dgethost.c13 gethost(int family, char *name, i6addr_t *hostp) in gethost() argument
19 bzero(hostp, sizeof(*hostp)); in gethost()
22 hostp->in4.s_addr = htonl(0xfedcba98); in gethost()
26 hostp->i6[0] = htonl(0xfe80aa55); in gethost()
27 hostp->i6[1] = htonl(0x12345678); in gethost()
28 hostp->i6[2] = htonl(0x5a5aa5a5); in gethost()
29 hostp->i6[3] = htonl(0xfedcba98); in gethost()
44 hostp->in4.s_addr = addr; in gethost()
51 hostp->in4.s_addr = htonl(n->n_net & 0xffffffff); in gethost()
66 hostp->in6 = sin6->sin6_addr; in gethost()
/freebsd/usr.sbin/rpc.umntall/
H A Dmounttab.c55 add_mtab(char *hostp, char *dirp) in add_mtab() argument
63 (long)time(NULL), hostp, dirp); in add_mtab()
76 char *hostp, *dirp, *cp; in read_mtab() local
103 hostp = strsep(&cp, " \t\n"); in read_mtab()
104 if (hostp == NULL || *hostp == '\0') { in read_mtab()
105 badline("host", hostp); in read_mtab()
125 memmove(mtabp->mtab_host, hostp, MNTNAMLEN); in read_mtab()
186 clean_mtab(char *hostp, char *dirp, int verbose) in clean_mtab() argument
192 host = strdup(hostp); in clean_mtab()
/freebsd/sbin/mount_nfs/
H A Dmount_nfs.c136 static enum tryret nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec,
579 char *hostp, *delimp, *errstr, *spec; in getnfsargs() local
586 hostp = spec + 1; in getnfsargs()
590 hostp = spec; in getnfsargs()
594 hostp = delimp + 1; in getnfsargs()
610 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in getnfsargs()
611 warnx("%s:%s: %s", hostp, spec, strerror(ENAMETOOLONG)); in getnfsargs()
615 if (*hostp != '\0') { in getnfsargs()
616 len = strlen(hostp); in getnfsargs()
620 memmove(nam + offset, hostp, len); in getnfsargs()
[all …]
/freebsd/bin/hostname/
H A Dhostname.c46 char hostname[MAXHOSTNAMELEN], *hostp, *p; in main() local
79 hostp = hostname; in main()
89 hostp = p + 1; in main()
91 (void)printf("%s\n", hostp); in main()
/freebsd/sbin/umount/
H A Dumount.c343 char *hostp, *delimp; in umountfs() local
350 hostp = NULL; in umountfs()
361 hostp = nfsdirname + 1; in umountfs()
364 hostp = nfsdirname; in umountfs()
367 if (hostp != NULL) { in umountfs()
369 getaddrinfo(hostp, NULL, &hints, &ai); in umountfs()
440 clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS3, proto_ptr); in umountfs()
442 warnx("%s: %s", hostp, in umountfs()
453 warnx("%s: %s", hostp, in umountfs()
462 clean_mtab(hostp, nfsdirnam in umountfs()
[all...]
/freebsd/lib/libc/gen/
H A Dgetnetgrent.c229 char **hostp, **userp, **domp, *buf; in files_getnetgrent_r() local
233 hostp = va_arg(ap, char **); in files_getnetgrent_r()
243 return (_getnetgrent_r(hostp, userp, domp, buf, bufsize, errnop, st)); in files_getnetgrent_r()
297 char **hostp, **userp, **domp, *buf; in compat_getnetgrent_r() local
304 hostp = va_arg(ap, char **); in compat_getnetgrent_r()
311 return (_getnetgrent_r(hostp, userp, domp, buf, bufsize, errnop, in compat_getnetgrent_r()
414 _getnetgrent_r(char **hostp, char **userp, char **domp, char *buf, argument
437 COPY_NG_ELEM(hostp, NG_HOST);
925 getnetgrent_r(char **hostp, char **userp, char **domp, char *buf, size_t bufsize) argument
931 defaultsrc, hostp, userp, domp, buf, bufsize, &ret_errno);
[all …]
/freebsd/contrib/telnet/telnet/
H A Dcommands.c2175 char *cmd, *hostp = 0, *portp = 0, *user = 0; in tn() local
2219 if (hostp == 0) { in tn()
2220 hostp = *argv++; in tn()
2234 if (hostp == 0) in tn()
2255 if (hostp[0] == '/') { in tn()
2258 if (strlen(hostp) >= sizeof(su.sun_path)) { in tn()
2260 hostp); in tn()
2263 hostname = hostp; in tn()
2266 strncpy(su.sun_path, hostp, sizeof su.sun_path); in tn()
2268 printf("Trying %s...\n", hostp); in tn()
[all …]
/freebsd/crypto/openssh/
H A Dssh.c426 resolve_canonicalize(char **hostp, int port) in resolve_canonicalize() argument
436 if ((addrs = resolve_addr(*hostp, port, in resolve_canonicalize()
438 debug2_f("hostname %.100s is address", *hostp); in resolve_canonicalize()
439 if (strcasecmp(*hostp, newname) != 0) { in resolve_canonicalize()
441 *hostp, newname); in resolve_canonicalize()
442 free(*hostp); in resolve_canonicalize()
443 *hostp = xstrdup(newname); in resolve_canonicalize()
453 if (is_addr_fast(*hostp)) { in resolve_canonicalize()
454 debug_f("hostname %.100s is an unrecognised address", *hostp); in resolve_canonicalize()
472 if ((*hostp)[strlen(*hostp) - 1] == '.') { in resolve_canonicalize()
[all …]
H A Dmisc.c803 parse_user_host_path(const char *s, char **userp, char **hostp, char **pathp) in parse_user_host_path() argument
811 if (hostp != NULL) in parse_user_host_path()
812 *hostp = NULL; in parse_user_host_path()
845 if (hostp != NULL) { in parse_user_host_path()
846 *hostp = host; in parse_user_host_path()
871 parse_user_host_port(const char *s, char **userp, char **hostp, int *portp) in parse_user_host_port() argument
879 if (hostp != NULL) in parse_user_host_port()
880 *hostp = NULL; in parse_user_host_port()
909 if (hostp != NULL) { in parse_user_host_port()
910 *hostp = host; in parse_user_host_port()
[all …]
H A Dsshconnect.c943 char hostline[1000], *hostp, *fp, *ra; in check_host_key() local
1204 hostp = hostline; in check_host_key()
1220 hostp = host; in check_host_key()
1228 "list of known hosts.", hostp, type); in check_host_key()
H A Dscp.c752 parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, in parse_scp_uri() argument
757 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
H A Dreadconf.c3314 parse_ssh_uri(const char *uri, char **userp, char **hostp, int *portp) in parse_ssh_uri() argument
3327 if (hostp != NULL) { in parse_ssh_uri()
3328 *hostp = host; in parse_ssh_uri()
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dcommands.c2056 char *cmd, *hostp = 0, *portp = 0; in tn() local
2092 if (hostp == 0) { in tn()
2093 hostp = *argv++; in tn()
2106 if (hostp == 0) in tn()
2109 strlcpy (_hostname, hostp, sizeof(_hostname)); in tn()
2110 hostp = _hostname; in tn()
2111 if (hostp[0] == '@' || hostp[0] == '!') { in tn()
2114 for (p = hostp + 1; *p; p++) { in tn()
2119 fprintf(stderr, "%s: bad source route specification\n", hostp); in tn()
2124 hostname = hostp; in tn()
[all …]
/freebsd/stand/efi/libefi/
H A Defihttp.c393 char *host, *hostp; in _efihttp_fs_open() local
451 hostp = host; in _efihttp_fs_open()
455 hostp = (c + 2); in _efihttp_fs_open()
458 c = strchr(hostp, '/'); in _efihttp_fs_open()
472 headers[0].FieldValue = (CHAR8 *)hostp; in _efihttp_fs_open()
/freebsd/libexec/revnetgroup/
H A Dparse_netgroup.c117 __getnetgrent(char **hostp, char **userp, char **domp) in __getnetgrent() argument
120 *hostp = nextgrp->ng_str[NG_HOST]; in __getnetgrent()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clvfsops.c798 char *nam, *delimp, *hostp, *spec; in nfs_mount_parse_from() local
813 hostp = spec + 1; in nfs_mount_parse_from()
817 hostp = spec; in nfs_mount_parse_from()
822 hostp = delimp + 1; in nfs_mount_parse_from()
839 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in nfs_mount_parse_from()
840 printf("%s: %s:%s: name too long", __func__, hostp, spec); in nfs_mount_parse_from()
845 if (*hostp != '\0') { in nfs_mount_parse_from()
846 len = strlen(hostp); in nfs_mount_parse_from()
850 memmove(nam + offset, hostp, len); in nfs_mount_parse_from()
863 rv = inet_pton(AF_INET, hostp, &sin->sin_addr); in nfs_mount_parse_from()
[all …]
/freebsd/contrib/sendmail/src/
H A Dparseaddr.c2015 char **hostp; local
2068 hostp = ++tv;
2072 hostp = NULL;
2084 if (tv == hostp)
2085 hostp = NULL;
2086 else if (hostp != NULL)
2087 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', true);
2099 if (hostp != NULL)
2174 if (hostp == NULL)
/freebsd/usr.sbin/mountd/
H A Dmountd.c211 static void del_mlist(char *hostp, char *dirp);
3747 del_mlist(char *hostp, char *dirp) in del_mlist() argument
3754 if (!strcmp(mlp->ml_host, hostp) && in del_mlist()
3774 add_mlist(char *hostp, char *dirp) in add_mlist() argument
3780 if (!strcmp(mlp->ml_host, hostp) && !strcmp(mlp->ml_dirp, dirp)) in add_mlist()
3787 strncpy(mlp->ml_host, hostp, MNTNAMLEN); in add_mlist()
/freebsd/contrib/libpcap/
H A Dpcap.c1773 char **hostp, char **portp, char **pathp, char *ebuf) argument
1789 *hostp = NULL;
2101 *hostp = host;