Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/ipf/dist/lib/
H A Dgethost.c13 int gethost(family, name, hostp) in gethost() argument
16 i6addr_t *hostp;
22 memset(hostp, 0, sizeof(*hostp));
25 hostp->in4.s_addr = htonl(0xfedcba98);
29 hostp->i6[0] = htonl(0xfe80aa55);
30 hostp->i6[1] = htonl(0x12345678);
31 hostp->i6[2] = htonl(0x5a5aa5a5);
32 hostp->i6[3] = htonl(0xfedcba98);
47 hostp->in4.s_addr = addr;
54 hostp->in4.s_addr = htonl(n->n_net & 0xffffffff);
[all …]
/netbsd-src/sbin/mount_nfs/
H A Dgetnfsargs.c115 char *hostp, *delimp; in getnfsargs() local
121 hostp = delimp + 1; in getnfsargs()
123 hostp = spec; in getnfsargs()
137 if (getaddrinfo(hostp, "nfs", &hints, &ai_nfs) != 0) { in getnfsargs()
139 if ((ecode = getaddrinfo(hostp, "nfs", &hints, &ai_nfs)) != 0) { in getnfsargs()
140 warnx("can't get net id for host \"%s\": %s", hostp, in getnfsargs()
180 if (!rpcb_getaddr(RPCPROG_NFS, nfsvers, nconf, &nfs_nb, hostp)){ in getnfsargs()
204 clp = clnt_tp_create(hostp, RPCPROG_MNT, mntvers, in getnfsargs()
H A Dgetnfsargs_small.c195 char *hostp, *delimp; in getnfsargs() local
203 hostp = delimp + 1; in getnfsargs()
205 hostp = spec; in getnfsargs()
216 if ((ecode = getaddrinfo(hostp, "nfs", &hints, &ai_nfs)) != 0) { in getnfsargs()
217 warnx("can't get net id for host \"%s\": %s", hostp, in getnfsargs()
/netbsd-src/sbin/umount/
H A Dumount.c190 char *hostp = NULL; in umountfs() local
257 hostp = malloc(len + 1); in umountfs()
258 if (hostp == NULL) in umountfs()
260 memcpy(hostp, name, len); in umountfs()
261 hostp[len] = 0; in umountfs()
263 if (getaddrinfo(hostp, NULL, &hints, &ai) != 0) in umountfs()
322 clp = clnt_create(hostp, RPCPROG_MNT, RPCMNT_VER1, proto); in umountfs()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dssh.c417 resolve_canonicalize(char **hostp, int port) in resolve_canonicalize() argument
427 if ((addrs = resolve_addr(*hostp, port, in resolve_canonicalize()
429 debug2_f("hostname %.100s is address", *hostp); in resolve_canonicalize()
430 if (strcasecmp(*hostp, newname) != 0) { in resolve_canonicalize()
432 *hostp, newname); in resolve_canonicalize()
433 free(*hostp); in resolve_canonicalize()
434 *hostp = xstrdup(newname); in resolve_canonicalize()
444 if (is_addr_fast(*hostp)) { in resolve_canonicalize()
445 debug_f("hostname %.100s is an unrecognised address", *hostp); in resolve_canonicalize()
463 if ((*hostp)[strlen(*hostp) - 1] == '.') { in resolve_canonicalize()
[all …]
H A Dmisc.c778 parse_user_host_path(const char *s, char **userp, char **hostp, char **pathp) in parse_user_host_path() argument
786 if (hostp != NULL) in parse_user_host_path()
787 *hostp = NULL; in parse_user_host_path()
820 if (hostp != NULL) { in parse_user_host_path()
821 *hostp = host; in parse_user_host_path()
846 parse_user_host_port(const char *s, char **userp, char **hostp, int *portp) in parse_user_host_port() argument
854 if (hostp != NULL) in parse_user_host_port()
855 *hostp = NULL; in parse_user_host_port()
884 if (hostp != NULL) { in parse_user_host_port()
885 *hostp = host; in parse_user_host_port()
[all …]
H A Dsshconnect.c1003 char hostline[1000], *hostp, *fp, *ra; in check_host_key() local
1270 hostp = hostline; in check_host_key()
1286 hostp = host; in check_host_key()
1294 "list of known hosts.", hostp, type); in check_host_key()
H A Dscp.c708 parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, in parse_scp_uri() argument
713 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
/netbsd-src/usr.bin/last/
H A Dwant.c80 char hostbuf[sizeof(bp->ut_host) + 1], *hostp; in wtmp() local
181 gethost(bp, hostp, numeric), ct); in wtmp()
198 gethost(bp, hostp, numeric), in wtmp()
223 gethost(bp, hostp, numeric), in wtmp()
/netbsd-src/sys/fs/nfs/client/
H A Dnfs_clvfsops.c756 char *delimp, *hostp, *spec; in nfs_mount_parse_from() local
770 hostp = spec + 1; in nfs_mount_parse_from()
774 hostp = spec; in nfs_mount_parse_from()
779 hostp = delimp + 1; in nfs_mount_parse_from()
795 if (strlen(hostp) + strlen(spec) + 1 > MNAMELEN) { in nfs_mount_parse_from()
796 printf("%s: %s:%s: name too long", __func__, hostp, spec); in nfs_mount_parse_from()
800 if (*hostp != '\0') { in nfs_mount_parse_from()
801 len = strlen(hostp); in nfs_mount_parse_from()
805 memmove(nam + offset, hostp, len); in nfs_mount_parse_from()
818 rv = inet_pton(AF_INET, hostp, &sin->sin_addr); in nfs_mount_parse_from()
[all …]
/netbsd-src/usr.sbin/ypserv/revnetgroup/
H A Dparse_netgroup.c124 rng_getnetgrent(char **hostp, char **userp, char **domp) in rng_getnetgrent() argument
127 *hostp = nextgrp->ng_str[NG_HOST]; in rng_getnetgrent()
/netbsd-src/usr.sbin/faithd/
H A Dftp.c740 char *afp, *hostp, *portp; in ftp_copycommand() local
767 hostp = p; in ftp_copycommand()
789 error = getaddrinfo(hostp, portp, &hints, &res); in ftp_copycommand()
798 hostp); in ftp_copycommand()
/netbsd-src/usr.bin/telnet/
H A Dcommands.c2090 char *cmd, *hostp = 0; in tn() local
2125 if (hostp == 0) { in tn()
2126 hostp = *argv++; in tn()
2139 if (hostp == 0) in tn()
2142 (void) strlcpy(_hostname, hostp, sizeof(_hostname)); in tn()
2143 hostname = hostp; in tn()
2243 cmdrc(hostp, hostname); in tn()
/netbsd-src/usr.sbin/mountd/
H A Dmountd.c2174 del_mlist(char *hostp, char *dirp, struct sockaddr *saddr) in del_mlist() argument
2196 if (!strcmp(mlp->ml_host, hostp) && in del_mlist()
2237 add_mlist(char *hostp, char *dirp, int flags) in add_mlist() argument
2245 if (!strcmp(mlp->ml_host, hostp) && !strcmp(mlp->ml_dirp, dirp)) in add_mlist()
2251 strncpy(mlp->ml_host, hostp, RPCMNT_NAMELEN); in add_mlist()
/netbsd-src/external/ibm-public/postfix/dist/src/smtp/
H A Dsmtp_connect.c363 char **hostp, char **servicep, in smtp_parse_destination() argument
380 if ((err = host_port(buf, hostp, (char *) 0, servicep, def_service)) != 0) in smtp_parse_destination()
/netbsd-src/external/bsd/libbind/dist/irs/
H A Dirpmarshall.c1221 irp_unmarshall_ng(const char **hostp, const char **userp, const char **domainp, in irp_unmarshall_ng() argument
1229 if (userp == NULL || hostp == NULL || in irp_unmarshall_ng()
1280 *hostp = host; in irp_unmarshall_ng()
/netbsd-src/external/ibm-public/postfix/dist/src/posttls-finger/
H A Dposttls-finger.c1550 char **hostp, char **servicep, in parse_destination() argument
1567 if ((err = host_port(buf, hostp, (char *) 0, servicep, def_service)) != 0) in parse_destination()