Home
last modified time | relevance | path

Searched refs:sin0 (Results 1 – 11 of 11) sorted by relevance

/external/ltp/testcases/kernel/syscalls/accept/
Daccept01.c24 struct sockaddr_in sin0, sin1, fsin1; variable
70 sin0.sin_family = AF_INET; in test_setup()
71 sin0.sin_port = 0; in test_setup()
72 sin0.sin_addr.s_addr = INADDR_ANY; in test_setup()
77 SAFE_BIND(socket_fd, (struct sockaddr *)&sin0, sizeof(sin0)); in test_setup()
/external/ltp/testcases/kernel/syscalls/getsockname/
Dgetsockname01.c61 struct sockaddr_in sin0, fsin1; variable
145 sin0.sin_family = AF_INET; in setup()
146 sin0.sin_port = 0; in setup()
147 sin0.sin_addr.s_addr = INADDR_ANY; in setup()
173 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
/external/ltp/testcases/kernel/syscalls/recv/
Drecv01.c219 pid_t start_server(struct sockaddr_in *sin0) in start_server() argument
222 socklen_t slen = sizeof(*sin0); in start_server()
224 sin0->sin_family = AF_INET; in start_server()
225 sin0->sin_port = 0; /* pick random free port */ in start_server()
226 sin0->sin_addr.s_addr = INADDR_ANY; in start_server()
233 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server()
241 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
/external/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c240 pid_t start_server(struct sockaddr_in *sin0) in start_server() argument
243 socklen_t slen = sizeof(*sin0); in start_server()
245 sin0->sin_family = AF_INET; in start_server()
246 sin0->sin_port = 0; /* pick random free port */ in start_server()
247 sin0->sin_addr.s_addr = INADDR_ANY; in start_server()
254 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server()
262 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c63 struct sockaddr_in sin0, fsin1; variable
179 sin0.sin_family = AF_INET; in setup()
180 sin0.sin_port = 0; in setup()
181 sin0.sin_addr.s_addr = INADDR_ANY; in setup()
206 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
/external/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c248 pid_t start_server(struct sockaddr_in *sin0) in start_server() argument
251 socklen_t slen = sizeof(*sin0); in start_server()
253 sin0->sin_family = AF_INET; in start_server()
254 sin0->sin_port = 0; /* pick random free port */ in start_server()
255 sin0->sin_addr.s_addr = INADDR_ANY; in start_server()
262 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server()
270 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
/external/ltp/testcases/kernel/syscalls/send/
Dsend01.c164 static pid_t start_server(struct sockaddr_in *sin0) in start_server() argument
167 socklen_t slen = sizeof(*sin0); in start_server()
169 sin0->sin_family = AF_INET; in start_server()
170 sin0->sin_port = 0; /* pick random free port */ in start_server()
171 sin0->sin_addr.s_addr = INADDR_ANY; in start_server()
178 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server()
186 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c61 struct sockaddr_in sin0, fsin1; variable
172 sin0.sin_family = AF_INET; in setup()
173 sin0.sin_port = 0; in setup()
174 sin0.sin_addr.s_addr = INADDR_ANY; in setup()
199 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
/external/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c49 static struct sockaddr_in sin0, fsin1; variable
159 sin0.sin_family = AF_INET; in setup()
160 sin0.sin_port = 0; in setup()
161 sin0.sin_addr.s_addr = INADDR_ANY; in setup()
210 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
/external/ltp/testcases/kernel/syscalls/sendto/
Dsendto01.c234 static pid_t start_server(struct sockaddr_in *sin0) in start_server() argument
237 socklen_t slen = sizeof(*sin0); in start_server()
239 sin0->sin_family = AF_INET; in start_server()
240 sin0->sin_port = 0; /* pick random free port */ in start_server()
241 sin0->sin_addr.s_addr = INADDR_ANY; in start_server()
248 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server()
256 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
/external/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c419 static pid_t start_server(struct sockaddr_in *sin0, struct sockaddr_un *sun0) in start_server() argument
422 socklen_t slen = sizeof(*sin0); in start_server()
424 sin0->sin_family = AF_INET; in start_server()
425 sin0->sin_port = 0; /* pick random free port */ in start_server()
426 sin0->sin_addr.s_addr = INADDR_ANY; in start_server()
435 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server()
445 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()