Home
last modified time | relevance | path

Searched refs:sockaddr_in (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/external/libchromeos-rs/src/
Dnet.rs12 c_int, in6_addr, in_addr, sa_family_t, sockaddr, sockaddr_in, sockaddr_in6, socklen_t, AF_INET,
41 fn sockaddrv4_to_lib_c(s: &SocketAddrV4) -> sockaddr_in { in sockaddrv4_to_lib_c() argument
42 sockaddr_in { in sockaddrv4_to_lib_c()
105 &sin as *const sockaddr_in as *const sockaddr, in bind() constant
106 size_of::<sockaddr_in>() as socklen_t, in bind()
144 &sin as *const sockaddr_in as *const sockaddr, in connect() constant
145 size_of::<sockaddr_in>() as socklen_t, in connect()
156 size_of::<sockaddr_in>() as socklen_t, in connect()
189 let mut sin = sockaddr_in { in local_port()
197 let mut addrlen = size_of::<sockaddr_in>() as socklen_t; in local_port()
[all …]
/external/toybox/toys/pending/
Dtftp.c83 ((struct sockaddr_in *)server)->sin_family = AF_INET;
84 ((struct sockaddr_in *)server)->sin_addr.s_addr =
85 ((struct sockaddr_in *)&TT.inaddr)->sin_addr.s_addr;
86 ((struct sockaddr_in *)server)->sin_port = htons(port);
231 *port = ((struct sockaddr_in *)&from)->sin_port; in read_ack()
232 ((struct sockaddr_in *)server)->sin_port = in read_ack()
233 ((struct sockaddr_in *)&from)->sin_port; in read_ack()
235 if (((struct sockaddr_in *)server)->sin_addr.s_addr != in read_ack()
236 ((struct sockaddr_in *)&from)->sin_addr.s_addr) { in read_ack()
240 if (*port != ((struct sockaddr_in *)server)->sin_port) { in read_ack()
[all …]
Dtraceroute.c120 ((struct sockaddr_in *)&dest)->sin_port = TT.port + seq; in send_probe4()
137 sizeof(struct sockaddr_in)); in send_probe4()
295 if (memcmp(&((struct sockaddr_in *)&last_addr)->sin_addr, in do_trace()
296 &((struct sockaddr_in *)&from)->sin_addr, in do_trace()
301 sizeof(struct sockaddr_in), host, NI_MAXHOST, NULL, 0, 0)) in do_trace()
304 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace()
307 ((struct sockaddr_in *)&from)->sin_addr)); in do_trace()
315 rcv_len, inet_ntoa(((struct sockaddr_in *)&from)->sin_addr), in do_trace()
470 if (!memcmp(&((struct sockaddr_in *)&from)->sin_addr, in do_trace()
471 &((struct sockaddr_in *)&dest)->sin_addr, sizeof(struct in_addr)) in do_trace()
[all …]
/external/libsrtp2/test/
Drtp.h89 struct sockaddr_in addr; /* reciever's address */
96 struct sockaddr_in addr; /* receiver's address */
109 struct sockaddr_in addr,
114 struct sockaddr_in addr,
123 struct sockaddr_in name, /* socket name */
130 struct sockaddr_in name, /* socket name */
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c232 struct sockaddr_in *sinptr; in get_ifi_info()
340 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info()
342 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
346 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
366 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
368 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info()
371 sinptr->sin_len = sizeof(struct sockaddr_in); in get_ifi_info()
374 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
382 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info()
385 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnsextd.h53 struct sockaddr_in src;
65 struct sockaddr_in cli; // client's source address
95 struct sockaddr_in cli; // clien'ts source address
123 struct sockaddr_in addr; // the address we will bind to
124 struct sockaddr_in llq_addr; // the address we will receive llq requests on.
125 struct sockaddr_in ns_addr; // the real ns server address
/external/iputils/
Drdisc.c87 static int join(int sock, struct sockaddr_in *sin);
88 static void solicitor(struct sockaddr_in *);
90 static void advertise(struct sockaddr_in *, int lft);
93 static void pr_pack(char *buf, int cc, struct sockaddr_in *from);
101 static int sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *);
103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interfac…
174 struct sockaddr_in whereto;/* Address to send to */
222 static __inline__ int isbroadcast(struct sockaddr_in *sin) in isbroadcast()
227 static __inline__ int ismulticast(struct sockaddr_in *sin) in ismulticast()
288 struct sockaddr_in from; in main()
[all …]
/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c52 size_t exp_addrlen = (family == AF_INET) ? sizeof(struct sockaddr_in) : in verify_res()
68 struct sockaddr_in *psin; in verify_res()
70 psin = (struct sockaddr_in *)p->ai_addr; in verify_res()
177 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_loopback()
191 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive()
205 struct sockaddr_in *psin = (struct sockaddr_in *)p->ai_addr; in test_passive_no_host()
/external/rust/crates/mio/src/sys/unix/
Dnet.rs64 v4: libc::sockaddr_in,
84 let sockaddr_in = libc::sockaddr_in { in socket_addr() localVariable
100 let sockaddr = SocketAddrCRepr { v4: sockaddr_in }; in socket_addr()
101 let socklen = size_of::<libc::sockaddr_in>() as libc::socklen_t; in socket_addr()
145 let addr: &libc::sockaddr_in = &*(storage as *const libc::sockaddr_in); in to_socket_addr()
/external/rust/crates/socket2/src/
Dsockaddr.rs6 sa_family_t, sockaddr, sockaddr_in, sockaddr_in6, sockaddr_storage, socklen_t, AF_INET,
168 let addr = unsafe { &*(&self.storage as *const _ as *const sockaddr_in) }; in as_socket() constant
225 let sockaddr_in = sockaddr_in { in from() localVariable
243 unsafe { (storage.as_mut_ptr() as *mut sockaddr_in).write(sockaddr_in) }; in from()
246 len: mem::size_of::<sockaddr_in>() as socklen_t, in from()
319 assert_eq!(addr.len(), size_of::<sockaddr_in>() as socklen_t); in ipv4()
326 assert_eq!(addr.len(), size_of::<sockaddr_in>() as socklen_t); in ipv4()
/external/cronet/net/base/
Dip_endpoint.cc107 static_cast<socklen_t>(sizeof(struct sockaddr_in)); in ToSockAddr()
121 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>(address); in ToSockAddr()
122 memset(addr, 0, sizeof(struct sockaddr_in)); in ToSockAddr()
153 if (sock_addr_len < static_cast<socklen_t>(sizeof(struct sockaddr_in))) in FromSockAddr()
155 const struct sockaddr_in* addr = in FromSockAddr()
156 reinterpret_cast<const struct sockaddr_in*>(sock_addr); in FromSockAddr()
Daddress_list_unittest.cc27 struct sockaddr_in address; in TEST()
59 struct sockaddr_in* addr = in TEST()
60 reinterpret_cast<struct sockaddr_in*>(storage[i].addr); in TEST()
61 storage[i].addr_len = sizeof(struct sockaddr_in); in TEST()
110 sizeof(struct sockaddr_in), in TEST()
111 offsetof(struct sockaddr_in, sin_addr), in TEST()
124 sizeof(struct sockaddr_in), in TEST()
125 offsetof(struct sockaddr_in, sin_addr), in TEST()
/external/grpc-grpc/test/core/iomgr/
Dudp_server_test.cc211 struct sockaddr_in* addr = in test_no_op_with_port()
212 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port()
217 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port()
235 struct sockaddr_in* addr = in test_no_op_with_port_and_socket_factory()
236 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port_and_socket_factory()
249 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port_and_socket_factory()
271 struct sockaddr_in* addr = in test_no_op_with_port_and_start()
272 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_no_op_with_port_and_start()
277 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_no_op_with_port_and_start()
Dtcp_client_uv_test.cc86 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_succeeds()
95 resolved_addr.len = sizeof(struct sockaddr_in); in test_succeeds()
136 struct sockaddr_in* addr = (struct sockaddr_in*)resolved_addr.addr; in test_fails()
144 resolved_addr.len = sizeof(struct sockaddr_in); in test_fails()
Dtcp_client_posix_test.cc81 struct sockaddr_in* addr = in test_succeeds()
82 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_succeeds()
92 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_succeeds()
141 struct sockaddr_in* addr = in test_fails()
142 reinterpret_cast<struct sockaddr_in*>(resolved_addr.addr); in test_fails()
150 resolved_addr.len = static_cast<socklen_t>(sizeof(struct sockaddr_in)); in test_fails()
/external/openscreen/platform/impl/
Dsocket_address_posix_unittest.cc15 const sockaddr_in* v4_address = in TEST()
16 reinterpret_cast<const sockaddr_in*>(address.address()); in TEST()
47 struct sockaddr_in address; in TEST()
54 const sockaddr_in* v4_address = in TEST()
55 reinterpret_cast<const sockaddr_in*>(address_posix.address()); in TEST()
/external/ltp/testcases/kernel/syscalls/accept/
Daccept02.c39 static struct sockaddr_in *server_addr;
40 static struct sockaddr_in *client_addr;
111 struct sockaddr_in *mc_group_addr; in setup()
118 mc_group_addr = (struct sockaddr_in *) &mc_group->gr_group; in setup()
128 addr_len = sizeof(struct sockaddr_in); in setup()
/external/ltp/lib/
Dtst_net.c143 struct sockaddr_in *inet_ptr; in tst_get_connect_address()
153 inet_ptr = (struct sockaddr_in*)addr; in tst_get_connect_address()
179 void tst_init_sockaddr_inet(struct sockaddr_in *sa, const char *ip_str, uint16_t port) in tst_init_sockaddr_inet()
181 memset(sa, 0, sizeof(struct sockaddr_in)); in tst_init_sockaddr_inet()
187 void tst_init_sockaddr_inet_bin(struct sockaddr_in *sa, uint32_t ip_val, uint16_t port) in tst_init_sockaddr_inet_bin()
189 memset(sa, 0, sizeof(struct sockaddr_in)); in tst_init_sockaddr_inet_bin()
/external/cronet/net/dns/
Daddress_info_unittest.cc54 sockaddr_in* addr,
80 sockaddr_in addr[N]; in MakeAddrInfoList()
112 sockaddr_in* addr, in InitializeAddrinfo()
123 ai->ai_addrlen = sizeof(sockaddr_in); in InitializeAddrinfo()
253 const sockaddr_in* addr = in TEST()
254 reinterpret_cast<sockaddr_in*>(addr_info.ai_addr); in TEST()
265 const sockaddr_in* addr = reinterpret_cast<sockaddr_in*>(aii.ai_addr); in TEST()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dprobe_user.c12 struct sockaddr_in *in = (struct sockaddr_in *)&curr; in serial_test_probe_user()
58 in = (struct sockaddr_in *)&tmp; in serial_test_probe_user()
66 in = (struct sockaddr_in *)&curr; in serial_test_probe_user()
/external/linux-kselftest/tools/testing/selftests/netfilter/
Dconnect_close.c40 static void do_connect(const struct sockaddr_in *dst) in do_connect()
51 static void do_accept(const struct sockaddr_in *src) in do_accept()
74 struct sockaddr_in src = { in accept_loop()
91 struct sockaddr_in dst = { in connect_loop()
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_threads.c64 struct sockaddr_in conn_addr;
146 struct sockaddr_in lstn_addr; in main()
147 socklen_t len = sizeof(struct sockaddr_in); in main()
148 struct sockaddr_in svr_addr; in main()
168 sizeof(struct sockaddr_in)); in main()
/external/ltp/testcases/network/sockets/
DltpClient.c69 void ping_network(struct sockaddr_in *rawAddr, int pid);
73 void ltp_traceroute(struct sockaddr_in *rawTraceAddr, char *hostName, int pid);
89 struct sockaddr_in udpClientAddr, in main()
310 struct sockaddr_in rawTraceAddr; in ltp_run_traceroute_tests()
337 struct sockaddr_in rawAddr; in ltp_run_ping_tests()
369 struct sockaddr_in rawAddr; in network_listener()
483 void ping_network(struct sockaddr_in *rawAddr, int pid) in ping_network()
491 struct sockaddr_in r_addr; in ping_network()
560 void ltp_traceroute(struct sockaddr_in *rawTraceAddr, char *hostName, int pid) in ltp_traceroute()
569 struct sockaddr_in rawReceiveAddr; in ltp_traceroute()
/external/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c62 struct sockaddr_in sin1, sin2, sin3, sin4;
68 static pid_t start_server(struct sockaddr_in *);
84 sizeof(struct sockaddr_in), -1, EBADF, setup0,
90 sizeof(struct sockaddr_in), -1, EFAULT, setup1,
240 pid_t start_server(struct sockaddr_in *sin0) in start_server()
285 struct sockaddr_in fsin; in do_child()
/external/ipsec-tools/src/racoon/
Dsockmisc.c110 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
111 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
164 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
165 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
166 port1 = ((struct sockaddr_in *)addr1)->sin_port;
167 port2 = ((struct sockaddr_in *)addr2)->sin_port;
229 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
230 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
231 port1 = ((struct sockaddr_in *)addr1)->sin_port;
232 port2 = ((struct sockaddr_in *)addr2)->sin_port;
[all …]

12345678910>>...24