Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 25 of 67) sorted by relevance

123

/external/chromium/net/websockets/
Dwebsocket_throttle.cc19 static std::string AddrinfoToHashkey(const struct addrinfo* addrinfo) { in AddrinfoToHashkey() argument
20 switch (addrinfo->ai_family) { in AddrinfoToHashkey()
23 reinterpret_cast<const sockaddr_in*>(addrinfo->ai_addr); in AddrinfoToHashkey()
25 addrinfo->ai_family, in AddrinfoToHashkey()
30 reinterpret_cast<const sockaddr_in6*>(addrinfo->ai_addr); in AddrinfoToHashkey()
32 addrinfo->ai_family, in AddrinfoToHashkey()
38 addrinfo->ai_family, in AddrinfoToHashkey()
39 HexEncode(addrinfo->ai_addr, in AddrinfoToHashkey()
40 addrinfo->ai_addrlen).c_str()); in AddrinfoToHashkey()
209 for (const struct addrinfo* addrinfo = address_list.head(); in PutInQueue() local
[all …]
Dwebsocket_throttle_unittest.cc33 struct addrinfo *AddAddr(int a1, int a2, int a3, int a4, in AddAddr()
34 struct addrinfo* next) { in AddAddr()
35 struct addrinfo* addrinfo = new struct addrinfo; in AddAddr() local
36 memset(addrinfo, 0, sizeof(struct addrinfo)); in AddAddr()
37 addrinfo->ai_family = AF_INET; in AddAddr()
39 addrinfo->ai_addrlen = addrlen; in AddAddr()
40 addrinfo->ai_addr = reinterpret_cast<sockaddr*>(new char[addrlen]); in AddAddr()
41 memset(addrinfo->ai_addr, 0, sizeof(addrlen)); in AddAddr()
43 reinterpret_cast<sockaddr_in*>(addrinfo->ai_addr); in AddAddr()
49 addrinfo->ai_next = next; in AddAddr()
[all …]
/external/tcpdump/missing/
Dgetaddrinfo.c175 static int explore_fqdn (const struct addrinfo *, const char *,
176 const char *, struct addrinfo **);
177 static int explore_null (const struct addrinfo *, const char *,
178 const char *, struct addrinfo **);
179 static int explore_numeric (const struct addrinfo *, const char *,
180 const char *, struct addrinfo **);
181 static int explore_numeric_scope (const struct addrinfo *, const char *,
182 const char *, struct addrinfo **);
183 static int get_name (const char *, const struct afd *, struct addrinfo **,
184 char *, const struct addrinfo *, const char *);
[all …]
Daddrinfo.h71 struct addrinfo { struct
79 struct addrinfo *ai_next; /* next structure in linked list */ argument
82 extern void freeaddrinfo (struct addrinfo *);
86 const struct addrinfo *, struct addrinfo **);
/external/chromium/net/base/
Daddress_list.cc18 struct addrinfo* CreateCopyOfAddrinfo(const struct addrinfo* info) { in CreateCopyOfAddrinfo()
19 struct addrinfo* copy = new addrinfo; in CreateCopyOfAddrinfo()
22 memcpy(copy, info, sizeof(addrinfo)); in CreateCopyOfAddrinfo()
47 void FreeMyAddrinfo(struct addrinfo* info) { in FreeMyAddrinfo()
54 struct addrinfo* next = info->ai_next; in FreeMyAddrinfo()
64 uint16* GetPortField(const struct addrinfo* info) { in GetPortField()
82 void SetPortRecursive(struct addrinfo* info, int port) { in SetPortRecursive()
93 void AddressList::Adopt(struct addrinfo* head) { in Adopt()
97 void AddressList::Copy(const struct addrinfo* head) { in Copy()
127 struct addrinfo* ai = new addrinfo; in CreateIPv6Address()
[all …]
Daddress_list.h10 struct addrinfo;
24 void Adopt(struct addrinfo* head);
27 void Copy(const struct addrinfo* head);
51 const struct addrinfo* head() const { return data_->head; } in head()
55 Data(struct addrinfo* ai, bool is_system_created) in Data()
57 struct addrinfo* head;
Dhost_resolver_proc.cc162 struct addrinfo* ai = NULL; in SystemHostResolverProc()
163 struct addrinfo hints = {0}; in SystemHostResolverProc()
Dnet_util.h21 struct addrinfo;
75 std::string NetAddressToString(const struct addrinfo* net_address);
Dnet_util_unittest.cc374 const struct addrinfo* GetIPv4Address(const uint8* bytes) { in GetIPv4Address()
375 static struct addrinfo static_ai; in GetIPv4Address()
378 struct addrinfo* ai = &static_ai; in GetIPv4Address()
398 const struct addrinfo* GetIPv6Address(const uint8* bytes) { in GetIPv6Address()
399 static struct addrinfo static_ai; in GetIPv6Address()
402 struct addrinfo* ai = &static_ai; in GetIPv6Address()
1223 const addrinfo* ai = GetIPv4Address(tests[i].addr); in TEST()
1240 const addrinfo* ai = GetIPv6Address(tests[i].addr); in TEST()
Dhost_resolver_impl_unittest.cc220 const struct addrinfo* ainfo = adrlist.head(); in TEST_F()
221 EXPECT_EQ(static_cast<addrinfo*>(NULL), ainfo->ai_next); in TEST_F()
257 const struct addrinfo* ainfo = adrlist.head(); in TEST_F()
258 EXPECT_EQ(static_cast<addrinfo*>(NULL), ainfo->ai_next); in TEST_F()
315 const struct addrinfo* ainfo = adrlist.head(); in TEST_F()
316 EXPECT_EQ(static_cast<addrinfo*>(NULL), ainfo->ai_next); in TEST_F()
345 const struct addrinfo* ainfo = adrlist.head(); in TEST_F()
346 EXPECT_EQ(static_cast<addrinfo*>(NULL), ainfo->ai_next); in TEST_F()
/external/dropbear/
Dfake-rfc2553.c105 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo()
107 struct addrinfo *next; in freeaddrinfo()
119 addrinfo *malloc_ai(int port, u_long addr, const struct addrinfo *hints) in malloc_ai()
121 struct addrinfo *ai; in malloc_ai()
151 const struct addrinfo *hints, struct addrinfo **res) in getaddrinfo()
203 struct addrinfo *cur, *prev; in getaddrinfo()
Dfake-rfc2553.h124 struct addrinfo { struct
132 struct addrinfo *ai_next; /* next structure in linked list */ argument
142 const struct addrinfo *, struct addrinfo **);
152 void freeaddrinfo(struct addrinfo *);
/external/netperf/
Dnettest_bsd.h411 extern struct addrinfo *complete_addrinfo(char *controlhost,
418 extern void complete_addrinfos(struct addrinfo **remote,
419 struct addrinfo **local,
427 struct addrinfo *source,
428 struct addrinfo *destination);
429 extern void set_port_number(struct addrinfo *res,
Dnettest_bsd.c534 struct addrinfo *
537 struct addrinfo hints; in complete_addrinfo()
538 struct addrinfo *res; in complete_addrinfo()
539 struct addrinfo *temp_res; in complete_addrinfo()
718 complete_addrinfos(struct addrinfo **remote,struct addrinfo **local, char remote_host[], int type, … in complete_addrinfos()
791 get_port_number(struct addrinfo *res) in get_port_number()
817 set_port_number(struct addrinfo *res, unsigned short port) in set_port_number()
854 create_data_socket(struct addrinfo *res) in create_data_socket()
1121 get_address_address(struct addrinfo *info) in get_address_address()
1154 print_top_test_header(char test_name[], struct addrinfo *source, struct addrinfo *destination) in print_top_test_header()
[all …]
Dnettest_sctp.c409 struct addrinfo *remote_res;
410 struct addrinfo *local_res;
411 struct addrinfo *local_remote_res;
412 struct addrinfo *local_local_res;
1075 struct addrinfo *local_res; in recv_sctp_stream()
1545 struct addrinfo *remote_res;
1546 struct addrinfo *local_res;
1547 struct addrinfo *last_remote_res;
1548 struct addrinfo *last_local_res;
2237 struct addrinfo *local_res; in recv_sctp_stream_1toMany()
[all …]
/external/chromium/net/tools/flip_server/
Dcreate_listener.cc24 struct addrinfo * addrinfo_ptr_;
27 explicit AddrinfoGuard(struct addrinfo* addrinfo_ptr) : in AddrinfoGuard()
84 struct addrinfo *results = 0; in CreateListeningSocket()
85 struct addrinfo hints; in CreateListeningSocket()
/external/qemu/
Dqemu-sockets.c32 static int inet_getport(struct addrinfo *e) in inet_getport()
49 static void inet_setport(struct addrinfo *e, int port) in inet_setport()
76 static void inet_print_addrinfo(const char *tag, struct addrinfo *res) in inet_print_addrinfo()
78 struct addrinfo *e; in inet_print_addrinfo()
94 struct addrinfo ai,*res,*e; in inet_listen()
229 struct addrinfo ai,*res,*e; in inet_connect()
Dsockets.c642 struct addrinfo hints[1]; in sock_address_init_resolve()
643 struct addrinfo* res; in sock_address_init_resolve()
678 struct addrinfo* res_ipv4 = NULL; in sock_address_init_resolve()
679 struct addrinfo* res_ipv6 = NULL; in sock_address_init_resolve()
680 struct addrinfo* r; in sock_address_init_resolve()
747 struct addrinfo ai, *res, *e; in sock_address_list_create()
764 struct addrinfo hints = ai; in sock_address_list_create()
/external/chromium/net/proxy/
Dproxy_resolver_js_bindings_unittest.cc63 struct addrinfo* result_head = const_cast<struct addrinfo*>(result.head()); in PrependAddressToList()
66 result_head->ai_next = const_cast<struct addrinfo*>(orig_list.head()); in PrependAddressToList()
/external/chromium/net/socket/
Dtcp_client_socket_win.h48 int CreateSocket(const struct addrinfo* ai);
61 const struct addrinfo* current_ai_;
Dtcp_client_socket_libevent.h97 int CreateSocket(const struct addrinfo* ai);
105 const struct addrinfo* current_ai_;
/external/v8/src/
Dplatform-posix.cc277 struct addrinfo *result = NULL; in Connect()
278 struct addrinfo hints; in Connect()
279 memset(&hints, 0, sizeof(addrinfo)); in Connect()
/external/mtpd/
Dmtpd.c272 struct addrinfo hints = { in create_socket()
277 struct addrinfo *records; in create_socket()
278 struct addrinfo *r; in create_socket()
/external/chromium/third_party/libevent/
Dhttp.c145 struct addrinfo { struct
151 struct addrinfo *ai_next; argument
154 fake_getaddrinfo(const char *hostname, struct addrinfo *ai) in fake_getaddrinfo()
182 fake_freeaddrinfo(struct addrinfo *ai) in fake_freeaddrinfo()
200 static int bind_socket_ai(struct addrinfo *, int reuse);
2622 static struct addrinfo *
2626 struct addrinfo ai, *aitop;
2682 bind_socket_ai(struct addrinfo *ai, int reuse) in bind_socket_ai()
2725 static struct addrinfo *
2728 struct addrinfo *aitop = NULL; in make_addrinfo()
[all …]
/external/openssl/crypto/bio/
Db_sock.c642 const struct addrinfo *, in BIO_get_accept_socket()
643 struct addrinfo **); in BIO_get_accept_socket()
646 void (WSAAPI *f)(struct addrinfo *); in BIO_get_accept_socket()
648 struct addrinfo *res,hint; in BIO_get_accept_socket()

123