Searched refs:port (Results 1 - 25 of 1261) sorted by path

1234567891011>>

/freebsd-11-stable/bin/date/
H A Dnetdate.c74 int s, port, timed_ack, found, lerr; local
95 for (port = IPPORT_RESERVED - 1; port > IPPORT_RESERVED / 2; port--) {
96 lsin.sin_port = htons((u_short)port);
105 if (port == IPPORT_RESERVED / 2) {
/freebsd-11-stable/bin/rcp/
H A Drcp.c80 static u_short port; variable
165 port = sp->s_port;
268 rem = rcmd_af(&host, port,
330 rem = rcmd_af(&host, port, pwd->pw_name, suser, bp, 0,
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/mib/
H A Dtst.tcp.ksh41 port=2000
91 my \$addr = sockaddr_in($port, INADDR_ANY);
112 my \$peer = sockaddr_in($port, INADDR_ANY);
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_printf.c518 uint16_t port = htons(*((uint16_t *)addr)); local
523 if ((sv = getservbyport_r(port, NULL, &res, buf, sizeof (buf))) != NULL)
525 if (getservbyport_r(port, NULL, &res, buf, sizeof (buf), &sv) > 0)
/freebsd-11-stable/contrib/amd/amd/
H A Dautil.c529 u_short port; local
550 port = hasmntval(&mnt, MNTTAB_OPT_PORT);
551 if (port) {
552 sin.sin_port = htons(port);
554 plog(XLOG_ERROR, "no port number specified for %s", dir);
H A Dinfo_ldap.c114 int port; member in struct:he_ent
163 if (c) { /* Host and port */
166 cur->port = atoi(c);
169 cur->port = LDAP_PORT;
172 cur->host, cur->port);
285 dlog("Trying for %s:%d\n", aldh->hostent->host, aldh->hostent->port);
290 dlog("Bound to %s:%d\n", aldh->hostent->host, aldh->hostent->port);
329 if ((ld = ldap_open(h->host, h->port)) == NULL) {
330 plog(XLOG_WARNING, "Unable to ldap_open to %s:%d\n", h->host, h->port);
341 "%s:%d\n", gopt.ldap_proto_version, h->host, h->port);
[all...]
H A Drestart.c202 u_short port; local
237 /* Can we restart it? Only if it tells us what port it was using... */
238 if (sscanf(colon, "%*[^,],port%hu)", &port) != 1) {
239 plog(XLOG_WARNING, "No port specified for %s", me->mnt_fsname);
243 /* Maybe we already own that port... */
244 if (port != nfs_port) {
247 if (old_ports[i] == port ||
259 if (create_nfs_service(&soNFS, &port, &nfsxprt, nfs_dispatcher,
261 plog(XLOG_WARNING, "Can't bind to port
[all...]
H A Dsrvr_nfs.c72 u_short np_mountd; /* Mount daemon port number */
197 u_long port = 0; /* XXX - should be short but protocol is naff */ local
198 int error = done ? pickup_rpc_reply(pkt, len, (voidp) &port, (XDRPROC_T_TYPE) xdr_u_long) : -1;
201 if (!error && port) {
202 dlog("got port (%d) for mountd on %s", (int) port, fs->fs_host);
204 * Grab the port number. Portmap sends back
209 np->np_mountd = htons((u_short) port);
213 dlog("Error fetching port for mountd on %s", fs->fs_host);
214 dlog("\t error=%d, port
311 get_mountd_port(fserver *fs, u_short *port, wchan_t wchan) argument
[all...]
/freebsd-11-stable/contrib/amd/conf/transp/
H A Dtransp_sockets.c86 /* XXX: if hstrerror()/h_errno aren't portable, then need to port the next statement */
120 u_short port; local
129 port = IPPORT_RESERVED;
132 --port;
133 sin.sin_port = htons(port);
135 } while (rc < 0 && (int) port > IPPORT_RESERVED / 2);
138 *pp = port;
168 * Bind to a privileged port
171 plog(XLOG_ERROR, "can't bind privileged port (socket)");
174 * Find mountd port t
[all...]
/freebsd-11-stable/contrib/amd/scripts/
H A Dexpn.1105 $port = 'smtp';
151 ($name,$aliases,$port) = getservbyname($port,'tcp')
152 unless $port =~ /^\d+/;
183 $that = pack($sockaddr, &AF_INET, $port, $thataddr);
H A Dexpn.in104 $port = 'smtp';
150 ($name,$aliases,$port) = getservbyname($port,'tcp')
151 unless $port =~ /^\d+/;
182 $that = sockaddr_in($port, $thataddr);
/freebsd-11-stable/contrib/apr-util/dbd/
H A Dapr_dbd_mysql.c1120 {"port", NULL},
1128 unsigned int port = 0; local
1165 port = atoi(fields[4].value);
1190 fields[3].value, port,
/freebsd-11-stable/contrib/apr-util/include/
H A Dapr_memcache.h63 apr_port_t port; /**< Port of this Server */ member in struct:apr_memcache_server_t
177 * Finds a Server object based on a hostname/port pair
180 * @param port Port of the server
185 apr_port_t port);
208 * @param port port of the server
219 apr_port_t port,
H A Dapr_uri.h43 #define APR_URI_FTP_DEFAULT_PORT 21 /**< default FTP port */
44 #define APR_URI_SSH_DEFAULT_PORT 22 /**< default SSH port */
45 #define APR_URI_TELNET_DEFAULT_PORT 23 /**< default telnet port */
46 #define APR_URI_GOPHER_DEFAULT_PORT 70 /**< default Gopher port */
47 #define APR_URI_HTTP_DEFAULT_PORT 80 /**< default HTTP port */
48 #define APR_URI_POP_DEFAULT_PORT 110 /**< default POP port */
49 #define APR_URI_NNTP_DEFAULT_PORT 119 /**< default NNTP port */
50 #define APR_URI_IMAP_DEFAULT_PORT 143 /**< default IMAP port */
51 #define APR_URI_PROSPERO_DEFAULT_PORT 191 /**< default Prospero port */
52 #define APR_URI_WAIS_DEFAULT_PORT 210 /**< default WAIS port */
109 apr_port_t port; member in struct:apr_uri_t
[all...]
/freebsd-11-stable/contrib/apr-util/test/
H A Dtestmemcache.c144 apr_port_t port; local
146 port = PORT + i;
154 s = apr_memcache_find_server(memcache, HOST, port);
233 * which should have the same port.
239 ABTS_ASSERT(tc, "wrong server found", found->port == baton->which_server);
606 /* check for a running memcached on the typical port before
H A Dtesturi.c37 apr_port_t port; member in struct:aup_test
193 apr_port_t port; member in struct:uph_test
242 " port: %u\n"
248 info->fragment, info->hostent, info->port, info->is_initialized,
281 ABTS_INT_EQUAL(tc, t->port, info.port);
297 ABTS_INT_EQUAL(tc, info.port, 0);
317 ABTS_INT_EQUAL(tc, t->port, info.port);
/freebsd-11-stable/contrib/apr-util/uri/
H A Dapr_uri.c40 /** The default port for the scheme */
70 { NULL, 0xFFFF } /* unknown port */
129 uptr->port == 0 ||
130 uptr->port == apr_uri_port_of_scheme(uptr->scheme));
716 * structure. This eliminates the necessity of extracting host, port,
729 int port; local
843 /* If there's a username:password@host:port, the @ we want is the last @...
855 * the hostname. If there's a port it is the first colon,
866 s = NULL; /* no port */
873 /* we expect the common case to have no port */
[all...]
/freebsd-11-stable/contrib/blacklist/bin/
H A Dconf.c236 in_port_t *port = NULL; local
266 port = &sin6->sin6_port;
290 port = &sif->sif_port;
297 port = &sin->sin_port;
306 if (port && c->c_port != FSTAR && c->c_port != FEQUAL)
307 *port = htons((in_port_t)c->c_port);
544 * apply the mask and the port to the address given
551 in_port_t *port; local
567 port = &sin->sin_port;
573 port
740 fmtport(char *b, size_t l, int port) argument
[all...]
/freebsd-11-stable/contrib/blacklist/libexec/
H A Dblacklistd-helper9 # $6 port
38 port="port $6"
57 any port=$6 head port$6 | \
61 # use $ipfw_offset+$port for rule number
63 tname="port$6"
69 table"("$tname")" to any dst-port $6 >/dev/null && \
74 "$addr/$mask" to any $port
79 grep -q "<port
[all...]
/freebsd-11-stable/contrib/blacklist/port/
H A Dsockaddr_snprintf.c169 char Abuf[1024], pbuf[32], *name = NULL, *port = NULL; local
201 (void)snprintf(port = pbuf, sizeof(pbuf), "%d", p);
282 if (port)
283 ADDS(port);
288 port = pbuf, local
290 ADDS(port);
/freebsd-11-stable/contrib/blacklist/test/
H A Dcltest.c56 fprintf(stderr, "Usage: %s [-u] [-a <addr>] [-m <msg>] [-p <port>]\n",
99 in_port_t port = 6161; local
112 port = (in_port_t)atoi(optarg);
122 getaddr(addr, port, &ss, &slen);
H A Dsrvtest.c184 in_port_t port = 6161; local
198 port = (in_port_t)atoi(optarg);
204 pfd[0].fd = cr(AF_INET, type, port);
207 pfd[1].fd = cr(AF_INET6, type, port);
/freebsd-11-stable/contrib/bsnmp/lib/
H A Dsupport.c129 getaddrinfo(const char *host, const char *port, const struct addrinfo *hints, argument
162 if ((sent = getservbyname(port, NULL)) == NULL) {
/freebsd-11-stable/contrib/bsnmp/snmpd/
H A Dmain.c761 * Insert a port into the right place in the transport's table of ports
764 trans_insert_port(struct transport *t, struct tport *port) argument
768 port->transport = t;
770 if (asn_compare_oid(&p->index, &port->index) > 0) {
771 TAILQ_INSERT_BEFORE(p, port, link);
775 TAILQ_INSERT_TAIL(&t->table, port, link);
779 * Remove a port from a transport's list
782 trans_remove_port(struct tport *port) argument
785 TAILQ_REMOVE(&port->transport->table, port, lin
1207 snmp_send_port(void *targ, const struct asn_oid *port, struct snmp_pdu *pdu, const struct sockaddr *addr, socklen_t addrlen) argument
[all...]
H A Dtrans_lsock.c80 struct lsock_port *port = (struct lsock_port *)tp; local
82 (void)remove(port->name);
107 * Open a local port. If this is a datagram socket create also the
114 struct lsock_port *port; local
149 if ((port = calloc(1, sizeof(*port))) == NULL)
154 free(port);
158 if ((port->name = malloc(namelen + 1)) == NULL) {
159 free(port);
164 strncpy(port
219 struct lsock_port *port = (struct lsock_port *)tp; local
500 struct lsock_port *port; member in struct:lsock_dep
[all...]

Completed in 178 milliseconds

1234567891011>>