test/vsock: add dobule bind connect test
authorFilippo Storniolo <f.storniolo95@gmail.com>
Fri, 3 Nov 2023 17:55:51 +0000 (18:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Nov 2023 22:27:07 +0000 (22:27 +0000)
commitd80f63f690257b04b4fe3731b90dbf34a9ebb93f
tree17b39006bbf109634fd944cca078e3d84b3aa163
parent84d5fb9741316ca53f0f7c23b82f30e0bb33c38e
test/vsock: add dobule bind connect test

This add bind connect test which creates a listening server socket
and tries to connect a client with a bound local port to it twice.

Co-developed-by: Luigi Leonardi <luigi.leonardi@outlook.com>
Signed-off-by: Luigi Leonardi <luigi.leonardi@outlook.com>
Signed-off-by: Filippo Storniolo <f.storniolo95@gmail.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/vsock/util.c
tools/testing/vsock/util.h
tools/testing/vsock/vsock_test.c