• Home
  • Raw
  • Download

Lines Matching refs:sk

135 	int sk = socket(domain, type, protocol);  in test_socket()  local
136 if (-1 == sk) in test_socket()
138 return sk; in test_socket()
141 static inline int test_bind(int sk, struct sockaddr *addr, socklen_t addrlen) in test_bind() argument
143 int error = bind(sk, addr, addrlen); in test_bind()
149 static inline int test_bindx_add(int sk, struct sockaddr *addr, int count) in test_bindx_add() argument
151 int error = sctp_bindx(sk, addr, count, SCTP_BINDX_ADD_ADDR); in test_bindx_add()
157 static inline int test_listen(int sk, int backlog) in test_listen() argument
159 int error = listen(sk, backlog); in test_listen()
165 static inline int test_connect(int sk, struct sockaddr *addr, socklen_t addrlen) in test_connect() argument
167 int error = connect(sk, addr, addrlen); in test_connect()
173 static inline int test_connectx(int sk, struct sockaddr *addr, int count) in test_connectx() argument
175 int error = sctp_connectx(sk, addr, count, NULL); in test_connectx()
181 static inline int test_accept(int sk, struct sockaddr *addr, socklen_t *addrlen) in test_accept() argument
183 int error = accept(sk, addr, addrlen); in test_accept()
189 static inline int test_send(int sk, const void *msg, size_t len, int flags) in test_send() argument
191 int error = send(sk, msg, len, flags); in test_send()
198 static inline int test_sendto(int sk, const void *msg, size_t len, int flags, in test_sendto() argument
201 int error = sendto(sk, msg, len, flags, to, tolen); in test_sendto()
208 static inline int test_sendmsg(int sk, const struct msghdr *msg, int flags, in test_sendmsg() argument
211 int error = sendmsg(sk, msg, flags); in test_sendmsg()
218 static inline int test_recv(int sk, void *buf, size_t len, int flags) in test_recv() argument
220 int error = recv(sk, buf, len, flags); in test_recv()
226 static inline int test_recvmsg(int sk, struct msghdr *msg, int flags) in test_recvmsg() argument
228 int error = recvmsg(sk, msg, flags); in test_recvmsg()
234 static inline int test_shutdown(int sk, int how) in test_shutdown() argument
236 int error = shutdown(sk, how); in test_shutdown()
242 static inline int test_getsockopt(int sk, int optname, void *optval, in test_getsockopt() argument
245 int error = getsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_getsockopt()
252 static inline int test_setsockopt(int sk, int optname, const void *optval, in test_setsockopt() argument
255 int error = setsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_setsockopt()
262 static inline int test_sctp_peeloff(int sk, sctp_assoc_t assoc_id) in test_sctp_peeloff() argument
264 int error = sctp_peeloff(sk, assoc_id); in test_sctp_peeloff()
295 static inline int test_sctp_recvmsg(int sk, void *msg, size_t len, in test_sctp_recvmsg() argument
300 int error = sctp_recvmsg(sk, msg, len, from, fromlen, sinfo, msg_flags); in test_sctp_recvmsg()
321 void test_print_message(int sk, struct msghdr *msg, size_t msg_len);
322 int test_peer_addr(int sk, sctp_assoc_t asoc, sockaddr_storage_t *peers, int count);