]> Git Repo - J-linux.git/commitdiff
vsock/test: print type for SOCK_SEQPACKET
authorArseniy Krasnov <[email protected]>
Wed, 24 Jan 2024 19:32:55 +0000 (22:32 +0300)
committerJakub Kicinski <[email protected]>
Fri, 26 Jan 2024 00:39:21 +0000 (16:39 -0800)
SOCK_SEQPACKET is supported for virtio transport, so do not interpret
such type of socket as unknown.

Signed-off-by: Arseniy Krasnov <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
tools/testing/vsock/vsock_diag_test.c

index 9d61b1f1c4c33427a7f7ad1c59f5e949361db25d..081e045f46960ec32e8c6c06efcdb5652d7c421a 100644 (file)
@@ -39,6 +39,8 @@ static const char *sock_type_str(int type)
                return "DGRAM";
        case SOCK_STREAM:
                return "STREAM";
+       case SOCK_SEQPACKET:
+               return "SEQPACKET";
        default:
                return "INVALID TYPE";
        }
This page took 0.050399 seconds and 4 git commands to generate.