Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 25 of 189) sorted by relevance

12345678

/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/
H A Dno_host_v4v6.exp1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv http
2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http
3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http
4 ai3: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
5 ai4: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http
7 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv echo
8 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv echo
9 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv echo
10 ai3: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv echo
11 ai4: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv echo
[all …]
H A Dbasics_v4v6.exp1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http
2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http
3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http
5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http
6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http
9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http
10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http
11 ai2: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
12 ai3: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http
[all …]
H A Dno_host_v4.exp1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv http
2 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
3 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http
5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv echo
6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv echo
7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv echo
9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv tftp
10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv tftp
11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv tftp
13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv 80
[all …]
H A Dbasics_v4.exp1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv http
2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http
3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http
5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv http
6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http
9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv http
10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http
13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv tftp
[all …]
H A Dno_serv_v4v6.exp1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv (empty)
2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0
3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0
5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv (empty)
6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0
7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0
9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv (empty)
10 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0
11 ai2: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0
12 ai3: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0
[all …]
H A Dno_serv_v4.exp1 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host ::1 serv (empty)
2 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv 0
3 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv 0
5 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host 127.0.0.1 serv (empty)
6 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0
7 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0
9 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host localhost serv (empty)
10 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv 0
11 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv 0
13 arg: flags 0x2 family 0 socktype 0 protocol 0 addrlen 0 host (empty) serv (empty)
H A Dsock_raw_v4v6.exp1 arg: flags 0x2 family 0 socktype 3 protocol 0 addrlen 0 host localhost serv (empty)
2 ai1: flags 0x2 family 24 socktype 3 protocol 0 addrlen 28 host ::1 serv 0
3 ai2: flags 0x2 family 2 socktype 3 protocol 0 addrlen 16 host 127.0.0.1 serv 0
5 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv (empty)
6 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0
7 ai2: flags 0x2 family 2 socktype 3 protocol 59 addrlen 16 host 127.0.0.1 serv 0
9 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv 80
11 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv www
13 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host ::1 serv (empty)
14 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0
H A Dsock_raw_v4.exp1 arg: flags 0x2 family 0 socktype 3 protocol 0 addrlen 0 host localhost serv (empty)
2 ai1: flags 0x2 family 2 socktype 3 protocol 0 addrlen 16 host 127.0.0.1 serv 0
4 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv (empty)
5 ai1: flags 0x2 family 2 socktype 3 protocol 59 addrlen 16 host 127.0.0.1 serv 0
7 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv 80
9 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host localhost serv www
11 arg: flags 0x2 family 0 socktype 3 protocol 59 addrlen 0 host ::1 serv (empty)
12 ai1: flags 0x2 family 24 socktype 3 protocol 59 addrlen 28 host ::1 serv 0
H A Dspec_fam_v4v6.exp1 arg: flags 0x2 family 2 socktype 0 protocol 0 addrlen 0 host localhost serv http
2 ai1: flags 0x2 family 2 socktype 2 protocol 17 addrlen 16 host 127.0.0.1 serv http
3 ai2: flags 0x2 family 2 socktype 1 protocol 6 addrlen 16 host 127.0.0.1 serv http
5 arg: flags 0x2 family 24 socktype 0 protocol 0 addrlen 0 host localhost serv http
6 ai1: flags 0x2 family 24 socktype 2 protocol 17 addrlen 28 host ::1 serv http
7 ai2: flags 0x2 family 24 socktype 1 protocol 6 addrlen 28 host ::1 serv http
/freebsd/contrib/unbound/util/storage/
H A Ddnstree.c64 int r = sockaddr_cmp_addr(&n1->addr, n1->addrlen, &n2->addr, in addr_tree_compare()
65 n2->addrlen); in addr_tree_compare()
78 return sockaddr_cmp(&n1->addr, n1->addrlen, &n2->addr, in addr_tree_addrport_compare()
79 n2->addrlen); in addr_tree_addrport_compare()
110 struct sockaddr_storage* addr, socklen_t addrlen, int net) in addr_tree_insert() argument
113 memcpy(&node->addr, addr, addrlen); in addr_tree_insert()
114 node->addrlen = addrlen; in addr_tree_insert()
127 if(!prev || prev->addrlen != node->addrlen) { in addr_tree_init_parents_node()
132 node->net, node->addrlen); in addr_tree_init_parents_node()
224 struct sockaddr_storage* addr, socklen_t addrlen) in addr_tree_lookup() argument
[all …]
/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_rcvaddr.c40 mib_find_rcvaddr(u_int ifindex, const u_char *addr, size_t addrlen) in mib_find_rcvaddr() argument
46 rcv->addrlen == addrlen && in mib_find_rcvaddr()
47 memcmp(rcv->addr, addr, addrlen) == 0) in mib_find_rcvaddr()
56 mib_rcvaddr_create(struct mibif *ifp, const u_char *addr, size_t addrlen) in mib_rcvaddr_create() argument
61 if (addrlen + OIDLEN_ifRcvAddressEntry + 1 > ASN_MAXOIDLEN) in mib_rcvaddr_create()
67 rcv->addrlen = addrlen; in mib_rcvaddr_create()
68 memcpy(rcv->addr, addr, addrlen); in mib_rcvaddr_create()
71 rcv->index.len = addrlen + 2; in mib_rcvaddr_create()
73 rcv->index.subs[1] = addrlen; in mib_rcvaddr_create()
74 for (i = 0; i < addrlen; i++) in mib_rcvaddr_create()
/freebsd/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h40 int swrap_accept(int s, struct sockaddr *addr, socklen_t *addrlen);
41 int swrap_connect(int s, const struct sockaddr *serv_addr, socklen_t addrlen);
42 int swrap_bind(int s, const struct sockaddr *myaddr, socklen_t addrlen);
44 int swrap_getpeername(int s, struct sockaddr *name, socklen_t *addrlen);
45 int swrap_getsockname(int s, struct sockaddr *name, socklen_t *addrlen);
62 #define accept(s,addr,addrlen) swrap_accept(s,addr,addrlen) argument
67 #define connect(s,serv_addr,addrlen) swrap_connect(s,serv_addr,addrlen) argument
72 #define bind(s,myaddr,addrlen) swrap_bind(s,myaddr,addrlen) argument
82 #define getpeername(s,name,addrlen) swrap_getpeername(s,name,addrlen) argument
87 #define getsockname(s,name,addrlen) swrap_getsockname(s,name,addrlen) argument
/freebsd/contrib/unbound/util/
H A Dnet_help.h157 struct sockaddr_storage* addr, socklen_t addrlen);
168 struct sockaddr_storage* addr, socklen_t addrlen);
178 struct sockaddr_storage* addr, socklen_t addrlen);
190 socklen_t* addrlen, int port);
201 socklen_t* addrlen);
214 socklen_t* addrlen, int* net);
228 socklen_t* addrlen, char** auth_name);
249 void sockaddr_store_port(struct sockaddr_storage* addr, socklen_t addrlen,
321 struct sockaddr_storage* addr2, int net2, socklen_t addrlen);
331 void addr_to_str(struct sockaddr_storage* addr, socklen_t addrlen,
[all …]
H A Dnet_help.c206 struct sockaddr_storage* addr, socklen_t addrlen) in log_addr() argument
235 (int)port, (int)addrlen); in log_addr()
241 socklen_t* addrlen, int port) in extstrtoaddr() argument
255 return ipstrtoaddr(buf, port, addr, addrlen); in extstrtoaddr()
257 return ipstrtoaddr(str, port, addr, addrlen); in extstrtoaddr()
262 socklen_t* addrlen) in ipstrtoaddr() argument
271 *addrlen = (socklen_t)sizeof(struct sockaddr_in6); in ipstrtoaddr()
272 memset(sa, 0, *addrlen); in ipstrtoaddr()
291 *addrlen = (socklen_t)sizeof(struct sockaddr_in); in ipstrtoaddr()
292 memset(sa, 0, *addrlen); in ipstrtoaddr()
[all …]
H A Dtcp_conn_limit.c88 socklen_t addrlen, int net, uint32_t limit, in tcl_list_insert() argument
97 if(!addr_tree_insert(&tcl->tree, &node->node, addr, addrlen, net)) { in tcl_list_insert()
111 socklen_t addrlen; in tcl_list_str_cfg() local
118 if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) { in tcl_list_str_cfg()
122 if(!tcl_list_insert(tcl, &addr, addrlen, net, limit, in tcl_list_str_cfg()
183 socklen_t addrlen) in tcl_addr_lookup() argument
186 addr, addrlen); in tcl_addr_lookup()
/freebsd/contrib/unbound/services/cache/
H A Dinfra.c98 int r = sockaddr_cmp(&k1->addr, k1->addrlen, &k2->addr, k2->addrlen); in infra_compfunc()
255 socklen_t addrlen; in wait_limit_netblock_findcreate() local
258 if(!netblockstrtoaddr(str, 0, &addr, &addrlen, &net)) { in wait_limit_netblock_findcreate()
269 addrlen, net); in wait_limit_netblock_findcreate()
278 if(!addr_tree_insert(tree, &d->node, &addr, addrlen, net)) { in wait_limit_netblock_findcreate()
441 hash_addr(struct sockaddr_storage* addr, socklen_t addrlen, in hash_addr() argument
446 if(addr_is_ip6(addr, addrlen)) { in hash_addr()
466 hash_infra(struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name) in hash_infra() argument
468 return dname_query_hash(name, hash_addr(addr, addrlen, 1)); in hash_infra()
474 socklen_t addrlen, uint8_t* name, size_t namelen, int wr) in infra_lookup_nottl() argument
[all …]
H A Dinfra.h62 socklen_t addrlen; member
172 socklen_t addrlen; member
247 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name,
269 socklen_t addrlen, uint8_t* name, size_t namelen,
288 struct sockaddr_storage* addr, socklen_t addrlen,
308 socklen_t addrlen, uint8_t* name, size_t namelen, int qtype,
320 struct sockaddr_storage* addr, socklen_t addrlen,
336 struct sockaddr_storage* addr, socklen_t addrlen,
358 struct sockaddr_storage* addr, socklen_t addrlen,
379 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name,
[all …]
/freebsd/contrib/unbound/iterator/
H A Diter_donotq.c78 socklen_t addrlen, int net) in donotq_insert() argument
84 if(!addr_tree_insert(&dq->tree, node, addr, addrlen, net)) { in donotq_insert()
96 socklen_t addrlen; in donotq_str_cfg() local
98 if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) { in donotq_str_cfg()
102 if(!donotq_insert(dq, &addr, addrlen, net)) { in donotq_str_cfg()
143 socklen_t addrlen) in donotq_lookup() argument
145 return addr_tree_lookup(&donotq->tree, addr, addrlen) != NULL; in donotq_lookup()
H A Diter_delegpt.c89 if(!delegpt_add_addr(copy, region, &a->addr, a->addrlen, in delegpt_copy()
159 socklen_t addrlen) in delegpt_find_addr() argument
163 if(sockaddr_cmp_addr(addr, addrlen, &p->addr, p->addrlen)==0 in delegpt_find_addr()
176 socklen_t addrlen, uint8_t bogus, uint8_t lame, int* additions) in delegpt_add_target() argument
185 if(addr_is_ip6(addr, addrlen)) in delegpt_add_target()
191 if(addr_is_ip6(addr, addrlen)) in delegpt_add_target()
196 return delegpt_add_addr(dp, region, addr, addrlen, bogus, lame, in delegpt_add_target()
202 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t bogus, in delegpt_add_addr() argument
209 sockaddr_store_port(addr, addrlen, port); in delegpt_add_addr()
212 if((a = delegpt_find_addr(dp, addr, addrlen))) { in delegpt_add_addr()
[all …]
/freebsd/crypto/heimdal/appl/test/
H A Dnt_gss_client.c49 socklen_t addrlen; in proto() local
74 addrlen = sizeof(local); in proto()
75 if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 in proto()
76 || addrlen != sizeof(local)) in proto()
79 addrlen = sizeof(remote); in proto()
80 if (getpeername (sock, (struct sockaddr *)&remote, &addrlen) < 0 in proto()
81 || addrlen != sizeof(remote)) in proto()
/freebsd/contrib/ofed/librdmacm/
H A Drsocket.h49 int rbind(int socket, const struct sockaddr *addr, socklen_t addrlen);
51 int raccept(int socket, struct sockaddr *addr, socklen_t *addrlen);
52 int rconnect(int socket, const struct sockaddr *addr, socklen_t addrlen);
58 struct sockaddr *src_addr, socklen_t *addrlen);
62 const struct sockaddr *dest_addr, socklen_t addrlen);
73 int rgetpeername(int socket, struct sockaddr *addr, socklen_t *addrlen);
74 int rgetsockname(int socket, struct sockaddr *addr, socklen_t *addrlen);
/freebsd/contrib/unbound/daemon/
H A Dacl_list.c79 socklen_t addrlen, int net, enum acl_access control, in acl_list_insert() argument
87 if(!addr_tree_insert(&acl->tree, &node->node, addr, addrlen, net)) { in acl_list_insert()
128 socklen_t addrlen; in acl_list_str_cfg() local
133 if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) { in acl_list_str_cfg()
137 if(!acl_list_insert(acl, &addr, addrlen, net, control, in acl_list_str_cfg()
152 socklen_t addrlen; in acl_find_or_create_str2addr() local
155 if(!extstrtoaddr(str, &addr, &addrlen, port)) { in acl_find_or_create_str2addr()
160 if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) { in acl_find_or_create_str2addr()
167 addrlen, net)) && !is_interface) { in acl_find_or_create_str2addr()
171 addrlen, net, acl_allow, 1))) { in acl_find_or_create_str2addr()
[all …]
/freebsd/contrib/unbound/services/
H A Doutside_network.c113 return sockaddr_cmp(&p1->addr, p1->addrlen, &p2->addr, p2->addrlen); in pending_cmp()
142 return sockaddr_cmp(&q1->addr, q1->addrlen, &q2->addr, q2->addrlen); in serviced_cmp()
154 r = sockaddr_cmp(&r1->addr, r1->addrlen, &r2->addr, r2->addrlen); in reuse_cmp_addrportssl()
219 if(addr_is_ip6(&w->addr, w->addrlen)) in pick_outgoing_tcp()
226 log_addr(VERB_OPS, "for addr", &w->addr, w->addrlen); in pick_outgoing_tcp()
231 if(addr_is_ip6(&w->addr, w->addrlen)) in pick_outgoing_tcp()
238 if(addr_is_any(&pi->addr, pi->addrlen)) { in pick_outgoing_tcp()
243 if(addr_is_ip6(&pi->addr, pi->addrlen)) in pick_outgoing_tcp()
246 if(bind(s, (struct sockaddr*)&pi->addr, pi->addrlen) != 0) { in pick_outgoing_tcp()
258 log_addr(VERB_ALGO, "tcp bound to src", &pi->addr, pi->addrlen); in pick_outgoing_tcp()
[all …]
/freebsd/crypto/openssh/
H A Dcanohost.c71 socklen_t addrlen; in get_socket_address() local
79 addrlen = sizeof(addr); in get_socket_address()
83 if (getpeername(sock, (struct sockaddr *)&addr, &addrlen) != 0) in get_socket_address()
86 if (getsockname(sock, (struct sockaddr *)&addr, &addrlen) != 0) in get_socket_address()
92 addrlen = sizeof(struct sockaddr_in6); in get_socket_address()
93 ipv64_normalise_mapped(&addr, &addrlen); in get_socket_address()
100 if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop, in get_socket_address()
/freebsd/contrib/unbound/edns-subnet/
H A Dsubnet-whitelist.c84 struct sockaddr_storage* addr, socklen_t addrlen, int net) in upstream_insert() argument
90 if(!addr_tree_insert(&whitelist->upstream, node, addr, addrlen, net)) { in upstream_insert()
103 socklen_t addrlen; in upstream_str_cfg() local
105 if(!netblockstrtoaddr(str, UNBOUND_DNS_PORT, &addr, &addrlen, &net)) { in upstream_str_cfg()
109 if(!upstream_insert(whitelist, &addr, addrlen, net)) { in upstream_str_cfg()
188 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* qname, in ecs_is_whitelisted() argument
192 if(addr_tree_lookup(&whitelist->upstream, addr, addrlen)) in ecs_is_whitelisted()

12345678