mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-20 08:42:06 +00:00
vsock/test: Introduce vsock_connect_fd()
Distill timeout-guarded vsock_connect_fd(). Adapt callers. Suggested-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Michal Luczaj <mhal@rbox.co> Link: https://patch.msgid.link/20250128-vsock-transport-vs-autobind-v3-4-1cf57065b770@rbox.co Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
852a00c428
commit
ac12b7e291
@@ -39,6 +39,7 @@ struct test_case {
|
||||
void init_signals(void);
|
||||
unsigned int parse_cid(const char *str);
|
||||
unsigned int parse_port(const char *str);
|
||||
int vsock_connect_fd(int fd, unsigned int cid, unsigned int port);
|
||||
int vsock_connect(unsigned int cid, unsigned int port, int type);
|
||||
int vsock_accept(unsigned int cid, unsigned int port,
|
||||
struct sockaddr_vm *clientaddrp, int type);
|
||||
|
||||
Reference in New Issue
Block a user