util.h (092f32ae628ed4874caf349cc0cfa0626cc3c5b0) | util.h (770ce0078cbf97262e86c9cc210684ce3b4266f5) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2#ifndef UTIL_H 3#define UTIL_H 4 5#include <sys/socket.h> 6#include <linux/vm_sockets.h> 7 8/* Tests can either run as the client or the server */ --- 22 unchanged lines hidden (view full) --- 31 void (*run_server)(const struct test_opts *opts); 32}; 33 34void init_signals(void); 35unsigned int parse_cid(const char *str); 36int vsock_stream_connect(unsigned int cid, unsigned int port); 37int vsock_stream_accept(unsigned int cid, unsigned int port, 38 struct sockaddr_vm *clientaddrp); | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2#ifndef UTIL_H 3#define UTIL_H 4 5#include <sys/socket.h> 6#include <linux/vm_sockets.h> 7 8/* Tests can either run as the client or the server */ --- 22 unchanged lines hidden (view full) --- 31 void (*run_server)(const struct test_opts *opts); 32}; 33 34void init_signals(void); 35unsigned int parse_cid(const char *str); 36int vsock_stream_connect(unsigned int cid, unsigned int port); 37int vsock_stream_accept(unsigned int cid, unsigned int port, 38 struct sockaddr_vm *clientaddrp); |
39void vsock_wait_remote_close(int fd); |
|
39void send_byte(int fd, int expected_ret, int flags); 40void recv_byte(int fd, int expected_ret, int flags); 41void run_tests(const struct test_case *test_cases, 42 const struct test_opts *opts); 43 44#endif /* UTIL_H */ | 40void send_byte(int fd, int expected_ret, int flags); 41void recv_byte(int fd, int expected_ret, int flags); 42void run_tests(const struct test_case *test_cases, 43 const struct test_opts *opts); 44 45#endif /* UTIL_H */ |