Searched defs:host (Results 1 - 25 of 296) sorted by relevance

1234567891011>>

/freebsd-head/lib/librpcsvc/
H A Drwall.c49 rwall(char *host, char *msg) argument
51 return (callrpc(host, WALLPROG, WALLVERS, WALLPROC_WALL,
H A Drnusers.c50 rusers(char *host, utmpidlearr *up) argument
52 return (callrpc(host, RUSERSPROG, RUSERSVERS_IDLE, RUSERSPROC_NAMES,
58 rnusers(char *host) argument
62 if (callrpc(host, RUSERSPROG, RUSERSVERS_ORIG, RUSERSPROC_NUM,
H A Drstat.c49 rstat(char *host, struct statstime *statp) argument
51 return (callrpc(host, RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS,
57 havedisk(char *host) argument
61 if (callrpc(host, RSTATPROG, RSTATVERS_SWTCH, RSTATPROC_HAVEDISK,
/freebsd-head/lib/libc/inet/
H A Dinet_makeaddr.c47 * Formulate an Internet address from network + host. Used in
51 inet_makeaddr(in_addr_t net, in_addr_t host) argument
56 a.s_addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);
58 a.s_addr = (net << IN_CLASSB_NSHIFT) | (host & IN_CLASSB_HOST);
60 a.s_addr = (net << IN_CLASSC_NSHIFT) | (host & IN_CLASSC_HOST);
62 a.s_addr = net | host;
/freebsd-head/contrib/ipfilter/lib/
H A Dconnecttcp.c19 struct hostent *host; local
31 host = gethostbyname(server);
32 if (host == NULL)
34 memcpy(&sin.sin_addr, host->h_addr_list[0],
H A Dalist_new.c13 alist_new(int family, char *host) argument
21 if (strchr(host, ':') != NULL)
35 while (ISSPACE(*host))
36 host++;
38 if (*host == '!') {
40 host++;
41 while (ISSPACE(*host))
42 host++;
46 slash = strchr(host, '/');
57 sscanf(host, "
[all...]
/freebsd-head/contrib/opie/libopie/
H A Dlogin.c46 int opielogin FUNCTION((line, name, host), char *line AND char *name AND char *host) argument
86 strncpy(u.ut_host, host, sizeof(u.ut_host));
89 u.ut_syslen = strlen(host) + 1;
111 opielogwtmp(line, name, host, id);
H A Dinsecure.c135 char host[sizeof(utmp.ut_host) + 1]; variable
138 strncpy(host, utmp.ut_host, sizeof(utmp.ut_host));
139 host[sizeof(utmp.ut_host)] = 0;
141 if (s = strchr(host, ':')) {
142 int n = s - host;
147 if (!strncmp(host, display_name, n))
151 if (s = strchr(host, ' ')) {
155 if (!strncmp(host, display_name, n))
/freebsd-head/contrib/gdb/gdb/
H A Dstop-gdb.c49 char *host; local
61 /* Allow the user to specify a remote host. */
62 host = strchr (argv[1], '@');
63 if (host)
64 *(host++) = '\0';
66 host = (char *) "";
82 kr = netname_look_up (name_server_port, host, name, &gdb_port);
84 kr = netname_look_up (name_server_port, host, argv[1], &gdb_port);
/freebsd-head/contrib/ntp/libntp/
H A Dis_ip_address.c28 const char * host,
40 REQUIRE(host != NULL);
55 if (inet_pton(AF_INET, host, &in4) == 1) {
63 if (sizeof(tmpbuf) > strlen(host)) {
64 if ('[' == host[0]) {
65 strlcpy(tmpbuf, &host[1], sizeof(tmpbuf));
70 strlcpy(tmpbuf, host, sizeof(tmpbuf));
27 is_ip_address( const char * host, u_short af, sockaddr_u * addr ) argument
/freebsd-head/libexec/ypxfr/
H A Dypxfr_getmap.c56 * be able to specify the source host explicitly since ypxfr may
63 ypxfr_get_map(char *map, char *domain, char *host, argument
75 if ((clnt = clnt_create(host, YPPROG, YPVERS, "tcp")) == NULL) {
/freebsd-head/lib/libc/rpc/
H A Dgetrpcport.c58 getrpcport(char *host, int prognum, int versnum, int proto) argument
63 assert(host != NULL);
65 if ((hp = gethostbyname(host)) == NULL)
/freebsd-head/lib/libulog/
H A Dulog_login.c66 ulog_login(const char *line, const char *user, const char *host) argument
73 if (host != NULL)
74 strncpy(utx.ut_host, host, sizeof utx.ut_host);
H A Dutempter.c38 utempter_add_record(int fd, const char *host) argument
41 ulog_login_pseudo(fd, host);
68 addToUtmp(const char *pty __unused, const char *host, int fd) argument
71 utempter_add_record(fd, host);
/freebsd-head/libexec/ulog-helper/
H A Dulog-helper.c76 const char *line, *user, *host; local
89 host = argc == 3 ? argv[2] : NULL;
91 ulog_login(line, user, host);
/freebsd-head/usr.sbin/pkg/
H A Ddns_utils.h41 char host[MAXHOSTNAMELEN]; member in struct:dns_srvinfo
/freebsd-head/crypto/openssh/
H A Dauth-sia.c57 const char *host; local
60 host = get_canonical_hostname(options.use_dns);
65 if (sia_ses_init(&ent, saved_argc, saved_argv, host, authctxt->user,
71 authctxt->user, host);
87 const char *host; local
89 host = get_canonical_hostname(options.use_dns);
91 if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name,
103 pw->pw_name, host);
107 pw->pw_name, host);
/freebsd-head/contrib/bsnmp/tests/
H A Dsnmp_parse_server.cc49 SECTION("complex host name without special characters") {
50 const auto str = "some.host.domain"s;
58 SECTION("complex host name with special characters") {
59 const auto str = "some-mul.host-32.domain."s;
92 const auto host = "::"s; variable
93 const auto str = "[" + host + "]";
96 REQUIRE(sc.chost == host);
102 const auto host = "::1"s; variable
103 const auto str = "[" + host + "]";
106 REQUIRE(sc.chost == host);
112 const auto host = "fc00:0:12::1"s; variable
122 const auto host = "fc00:0:1x::1"s; variable
128 const auto host = "fc00::0:12::1"s; variable
134 const auto host = "1:2:3:4:5:6:7:8:9"s; variable
140 const auto host = "::"s; variable
152 const auto host = "somehost"s; variable
163 const auto host = "somehost"s; variable
174 const auto host = "somehost:foo"s; variable
185 const auto host = "bla.blub:foo.baz."s; variable
196 const auto host = "somehost"s; variable
209 const auto host = "::"s; variable
220 const auto host = "::1"s; variable
231 const auto host = "fc00:00:01::2:3"s; variable
244 const auto host = "127"s; variable
254 const auto host = "127.1"s; variable
264 const auto host = "127.23.1"s; variable
274 const auto host = "127.18.23.1"s; variable
284 const auto host = "0300.077.0377.01"s; variable
294 const auto host = "x80.x12.xff.x1"s; variable
311 const auto host = "somehost"s; variable
322 const auto host = "240.0.1.2"s; variable
333 const auto host = "somehost"s; variable
344 const auto host = "fec0:0:2::17"s; variable
355 const auto host = "somehost"s; variable
366 const auto host = "somehost"s; variable
377 const auto host = "somehost"s; variable
384 const auto host = "somehost"s; variable
397 const auto host = "somehost"s; variable
409 const auto host = "somehost:foo"s; variable
421 const auto host = ""s; variable
433 const auto host = "::1:2"s; variable
452 const auto host = "server.com"s; variable
463 const auto host = "server.com"s; variable
474 const auto host = "server.com"s; variable
493 const auto host = "server.com"s; variable
506 const auto host = "127.1"s; variable
519 const auto host = "fe80::1:2"s; variable
[all...]
/freebsd-head/contrib/tcp_wrappers/
H A Deval.c2 * Routines for controlled evaluation of host names, user names, and so on.
37 * host name has the value STRING_PARANOID it means there was a name/address
58 char *eval_hostaddr(host)
59 struct host_info *host;
61 if (host->addr[0] == 0) {
62 strcpy(host->addr, unknown);
63 if (host->request->hostaddr != 0)
64 host->request->hostaddr(host);
66 return (host
127 char *host = eval_hostinfo(request->server); local
[all...]
/freebsd-head/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c84 ftpd_logwtmp_asl(char *line, char *name, char *host) argument
98 "host %s/%s user %s%sconnected pid %d",
99 host, line, name, name[0] ? " " : "dis", (int)getpid());
107 ftpd_logwtmp_wtmp(char *line, char *name, char *host) argument
138 strncpy(ut.ut_host, host, sizeof(ut.ut_host));
146 strncpy(utx.ut_host, host, sizeof(utx.ut_host));
148 utx.ut_syslen = strlen(host) + 1;
192 ftpd_logwtmp(char *line, char *name, char *host) argument
195 ftpd_logwtmp_asl(line, name, host);
197 ftpd_logwtmp_wtmp(line, name, host);
[all...]
/freebsd-head/crypto/heimdal/appl/login/
H A Dutmpx_login.c26 int utmpx_login(char *line, const char *user, const char *host) { return 0; } argument
30 utmpx_update(struct utmpx *ut, char *line, const char *user, const char *host) argument
40 shrink_hostname (host, ut->ut_host, sizeof(ut->ut_host));
42 ut->ut_syslen = strlen(host) + 1;
58 prepare_utmp (&utmp, line, user, host);
68 utmpx_login(char *line, const char *user, const char *host) argument
89 utmpx_update(&save_ut, line, user, host);
99 utmpx_update(&newut, line, user, host);
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dkrbhst-test.c88 char host[MAXHOSTNAMELEN]; local
95 host, sizeof(host)) == 0)
96 printf("\thost: %s\n", host);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dgetaddrinfo_hostspec.c38 /* getaddrinfo via string specifying host and port */
48 char host[MAXHOSTNAMELEN]; local
91 snprintf (host, sizeof(host), "%.*s", hostspec_len, hostspec);
92 return getaddrinfo (host, portstr, &hints, ai);
H A Dgetnameinfo_verified.c48 char *host, size_t hostlen,
59 if (host == NULL)
67 ret = getnameinfo (sa, salen, host, hostlen, serv, servlen,
74 ret = getaddrinfo (host, serv, &hints, &ai);
91 ret = getnameinfo (sa, salen, host, hostlen, serv, servlen,
47 getnameinfo_verified(const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) argument
/freebsd-head/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sethostname.c41 static char host[MAXHOSTNAMELEN]; variable
62 atf_tc_skip("screws up the test host's hostname on FreeBSD");
85 (void)sethostname(host, sizeof(host));
90 (void)sethostname(host, sizeof(host));
96 atf_tc_set_md_var(tc, "descr", "Too long host name errors out?");
112 ATF_REQUIRE(sethostname(host, MAXHOSTNAMELEN - 1 ) == 0);
113 ATF_REQUIRE(sethostname(host, MAXHOSTNAMELEN) == -1);
115 (void)sethostname(host, sizeo
[all...]

Completed in 135 milliseconds

1234567891011>>