Searched defs:port (Results 1 - 25 of 45) sorted by relevance

12

/bind-9.11.3/lib/dns/rdata/in_1/
H A Dsrv_33.h24 isc_uint16_t port; member in struct:dns_rdata_in_srv
H A Dsrv_33.c149 * Priority, weight, port.
174 * Priority, weight, port.
204 * Priority, weight, port.
244 RETERR(uint16_tobuffer(srv->port, target));
270 srv->port = uint16_fromregion(&region);
301 isc_uint16_t port; local
310 port = uint16_fromregion(&region);
322 snprintf(buf, sizeof(buf), "_%u._tcp", port);
H A Dwks_11.c44 mygetservbyname(const char *name, const char *proto, long *port) { argument
50 *port = ntohs(se->s_port);
70 long port; local
155 port = strtol(DNS_AS_STR(token), &e, 10);
158 else if (!mygetservbyname(service, ps, &port) &&
159 !mygetservbyname(DNS_AS_STR(token), ps, &port))
161 if (port < 0 || port > 0xffff)
163 if (port > maxport)
164 maxport = port;
[all...]
/bind-9.11.3/bin/named/include/named/
H A Dlistenlist.h39 in_port_t port; member in struct:ns_listenelt
56 ns_listenelt_create(isc_mem_t *mctx, in_port_t port, isc_dscp_t dscp,
87 ns_listenlist_default(isc_mem_t *mctx, in_port_t port, isc_dscp_t dscp,
91 * all addresses with port 'port' (if 'enabled' is ISC_TRUE),
/bind-9.11.3/bin/named/
H A Dlwaddr.c47 in_port_t port)
55 isc_sockaddr_fromnetaddr(sa, &na, port);
46 lwaddr_sockaddr_fromlwresaddr(isc_sockaddr_t *sa, lwres_addr_t *la, in_port_t port) argument
H A Dlistenlist.c26 ns_listenelt_create(isc_mem_t *mctx, in_port_t port, isc_dscp_t dscp, argument
36 elt->port = port;
95 ns_listenlist_default(isc_mem_t *mctx, in_port_t port, isc_dscp_t dscp, argument
111 result = ns_listenelt_create(mctx, port, dscp, acl, &elt);
H A Dfuzz.c50 char *port; local
59 * Parse named -A argument in the "address:port" syntax. Due to
65 port = strchr(host, ':');
66 RUNTIME_CHECK(port != NULL);
67 *port = 0;
68 ++port;
73 servaddr.sin_port = htons(atoi(port));
321 char *port; local
330 * Parse named -A argument in the "address:port" syntax. Due to
336 port
[all...]
H A Dmain.c307 "[-p port] [-P listen-port]\n"
323 " [-n number_of_cpus] [-p port] [-s] "
458 int port; local
545 port = parse_int(isc_commandline_argument, "port");
546 if (port < 1 || port > 65535)
547 ns_main_earlyfatal("port '%s' out of range",
549 ns_g_port = port;
[all...]
/bind-9.11.3/lib/isc/
H A Dportset.c25 * bit corresponding to a single port in the ascending order. For example,
26 * the second most significant bit of buf[0] corresponds to port 1.
34 portset_isset(isc_portset_t *portset, in_port_t port) { argument
35 return (ISC_TF((portset->buf[port >> 5] & ((isc_uint32_t)1 << (port & 31))) != 0));
39 portset_add(isc_portset_t *portset, in_port_t port) { argument
40 if (!portset_isset(portset, port)) {
42 portset->buf[port >> 5] |= ((isc_uint32_t)1 << (port & 31));
47 portset_remove(isc_portset_t *portset, in_port_t port) { argument
82 isc_portset_isset(isc_portset_t *portset, in_port_t port) argument
96 isc_portset_add(isc_portset_t *portset, in_port_t port) argument
103 isc_portset_remove(isc_portset_t *portset, in_port_t port) argument
[all...]
H A Dsockaddr.c115 * Do the port first, giving us the opportunity to check for
269 in_port_t port)
277 sockaddr->type.sin.sin_port = htons(port);
298 in_port_t port)
306 sockaddr->type.sin6.sin6_port = htons(port);
313 in_port_t port)
323 sockaddr->type.sin6.sin6_port = htons(port);
358 in_port_t port)
369 sockaddr->type.sin.sin_port = htons(port);
380 sockaddr->type.sin6.sin6_port = htons(port);
268 isc_sockaddr_fromin(isc_sockaddr_t *sockaddr, const struct in_addr *ina, in_port_t port) argument
297 isc_sockaddr_fromin6(isc_sockaddr_t *sockaddr, const struct in6_addr *ina6, in_port_t port) argument
312 isc_sockaddr_v6fromin(isc_sockaddr_t *sockaddr, const struct in_addr *ina, in_port_t port) argument
357 isc_sockaddr_fromnetaddr(isc_sockaddr_t *sockaddr, const isc_netaddr_t *na, in_port_t port) argument
389 isc_sockaddr_setport(isc_sockaddr_t *sockaddr, in_port_t port) argument
408 in_port_t port = 0; local
[all...]
/bind-9.11.3/contrib/dnsperf-2.1.0.0-1/
H A Dnet.c69 perf_net_parseserver(int family, const char *name, unsigned int port, argument
76 if (port == 0) {
77 fprintf(stderr, "server port cannot be 0\n");
83 result = bind9_getaddresses(name, port, addrs, 8, &count);
101 perf_net_parselocal(int family, const char *name, unsigned int port, argument
109 isc_sockaddr_setport(addr, port);
111 isc_sockaddr_fromin(addr, &in4a, port);
113 isc_sockaddr_fromin6(addr, &in6a, port);
128 int port; local
154 port
[all...]
/bind-9.11.3/lib/bind9/
H A Dgetaddresses.c40 bind9_getaddresses(const char *hostname, in_port_t port, argument
74 isc_sockaddr_fromin(&addrs[0], &in4, port);
76 isc_sockaddr_v6fromin(&addrs[0], &in4, port);
118 port);
170 isc_sockaddr_fromin(&addrs[i], &sin->sin_addr, port);
175 port);
206 isc_sockaddr_fromin(&addrs[i], inp, port);
212 isc_sockaddr_fromin6(&addrs[i], in6p, port);
/bind-9.11.3/lib/dns/
H A Dportlist.c34 in_port_t port; member in struct:dns_element
57 if (e1->port < e2->port)
59 if (e1->port > e2->port)
96 find_port(dns_element_t *list, unsigned int len, in_port_t port) { argument
103 if (list[xtry].port == port)
105 if (port > list[xtry].port) {
129 dns_portlist_add(dns_portlist_t *portlist, int af, in_port_t port) argument
180 dns_portlist_remove(dns_portlist_t *portlist, int af, in_port_t port) argument
206 dns_portlist_match(dns_portlist_t *portlist, int af, in_port_t port) argument
[all...]
/bind-9.11.3/lib/lwres/
H A Dgetnameinfo.c57 * The name of the service associated with the port number in sa is
80 * port number.
157 unsigned short port; local
201 port = ((const struct sockaddr_in *)sa)->sin_port;
206 port = ((const struct sockaddr_in6 *)sa)->sin6_port;
211 port = 0;
213 POST(port); POST(addr);
223 (sp = getservbyport(port, proto)) == NULL) {
224 snprintf(numserv, sizeof(numserv), "%d", ntohs(port));
H A Dgetaddrinfo.c29 * lwres_getaddrinfo() is used to get a list of IP addresses and port
35 * either a decimal port number or a service name as listed in
164 int socktype, int port);
166 int socktype, int port);
175 /*% Get a list of IP addresses and port numbers for host hostname and service servname. */
184 int port, err, i; local
278 * First, look up the service name (port) if it was
285 port = strtol(servname, &e, 10);
289 if (port < 0 || port > 6553
563 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
626 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
[all...]
/bind-9.11.3/contrib/queryperf/missing/
H A Dgetnameinfo.c96 u_short port; local
125 port = ((struct sockinet *)sa)->si_port; /* network byte order */
131 snprintf(numserv, sizeof(numserv), "%d", ntohs(port));
136 sp = getservbyport(port, (flags & NI_DGRAM) ? "udp" : "tcp");
H A Dgetaddrinfo.c141 #define GET_AI(ai, afd, addr, port) {\
154 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\
211 u_short port; local
225 port = ANY;
284 * service port
293 port = htons(atoi(servname));
315 port = sp->s_port;
354 GET_AI(cur->ai_next, afd, afd->a_addrany, port);
360 port);
401 GET_AI(top, &afdl[i], pton, port);
450 u_short port = port0 & 0xffff; local
544 u_short port = port0 & 0xffff; local
[all...]
/bind-9.11.3/bin/confgen/
H A Drndc-confgen.c73 %s [-a] [-b bits] [-c keyfile] [-k keyname] [-p port] [-r randomfile] \
80 -p port: the port named will listen on and rndc will connect to\n\
89 %s [-a] [-b bits] [-c keyfile] [-k keyname] [-p port] [-r randomfile] \
96 -p port: the port named will listen on and rndc will connect to\n\
121 int port; local
144 port = DEFAULT_PORT;
183 port = strtol(isc_commandline_argument, &p, 10);
184 if (*p != '\0' || port <
[all...]
/bind-9.11.3/lib/irs/
H A Dgetnameinfo.c45 * The name of the service associated with the port number in sa is
68 * port number.
144 unsigned short port = 0; local
184 port = ((const struct sockaddr_in *)sa)->sin_port;
189 port = ((const struct sockaddr_in6 *)sa)->sin6_port;
203 (sp = getservbyport(port, proto)) == NULL) {
204 snprintf(numserv, sizeof(numserv), "%d", ntohs(port));
/bind-9.11.3/contrib/dlz/drivers/
H A Ddlz_mysql_driver.c787 int port; local
829 /* get db port. Not required, but must be > 0 if specified */
830 tmp = getParameterValue(argv[1], "port=");
832 port = 0;
834 port = strtol(tmp, &endp, 10);
835 if (*endp != '\0' || port < 0) {
838 "Mysql driver port "
939 user, pass, dbname, port, socket,
/bind-9.11.3/lib/dns/include/dns/
H A Dadb.h114 in_port_t port; member in struct:dns_adbfind
334 in_port_t port, dns_adbfind_t **find);
339 isc_stdtime_t now, dns_name_t *target, in_port_t port,
378 * All addresses returned will have the sockaddr's port set to 'port.'
/bind-9.11.3/bin/tests/
H A Dsig0_test.c206 in_port_t port = 53; local
221 port = (unsigned int)atoi(isc_commandline_argument);
251 isc_sockaddr_fromin(&address, &inaddr, port);
/bind-9.11.3/lib/samples/
H A Dresolve.c91 "[-b address[#port]] hostname\n");
177 addserver(dns_client_t *client, const char *addrstr, const char *port, argument
195 gaierror = getaddrinfo(addrstr, port, &hints, &res);
253 const char *port = "53"; local
337 port = isc_commandline_argument;
423 addserver(client, server, port, NULL);
428 addserver(client, altserveraddr, port, altservername);
H A Dsample-update.c63 static const char *port = "53"; variable
129 gaierror = getaddrinfo(server, port, &hints, &res);
190 port = isc_commandline_argument;
/bind-9.11.3/contrib/dlz/modules/mysql/
H A Ddlz_mysql_dynamic.c91 int port; member in struct:__anon50
867 /* get db port. Not required, but must be > 0 if specified */
868 tmp = get_parameter_value(argv[1], "port=");
870 mysql->port = 0;
872 mysql->port = strtol(tmp, &endp, 10);
873 if (*endp != '\0' || mysql->port < 0) {
875 "Mysql module: port "
1023 mysql->port, mysql->socket,

Completed in 3629 milliseconds

12