MINOR: protocol: add the control layer type in the protocol struct
This one will be needed to more accurately select a protocol. It may
differ from the socket type for QUIC, which uses dgram at the socket
layer and provides stream at the control layer. The upper level requests
a control layer only so we need this field.
diff --git a/src/proto_sockpair.c b/src/proto_sockpair.c
index 6b1d69c..fc26a80 100644
--- a/src/proto_sockpair.c
+++ b/src/proto_sockpair.c
@@ -61,6 +61,7 @@
static struct protocol proto_sockpair = {
.name = "sockpair",
.fam = &proto_fam_sockpair,
+ .ctrl_type = SOCK_STREAM,
.sock_domain = AF_CUST_SOCKPAIR,
.sock_type = SOCK_STREAM,
.sock_prot = 0,