MINOR: protocols: add a new protocol type selector
The protocol selection is currently performed based on the family,
control type and socket type. But this is often not enough, as both
only provide DGRAM or STREAM, leaving few variants. Protocols like
SCTP for example might be indistinguishable from TCP here. Same goes
for TCP extensions like MPTCP.
This commit introduces a new enum proto_type that is placed in each
and every protocol definition, that will usually more or less match
the sock_type, but being an enum, will support additional values.
diff --git a/src/proto_uxdg.c b/src/proto_uxdg.c
index b0efe86..6f070b4 100644
--- a/src/proto_uxdg.c
+++ b/src/proto_uxdg.c
@@ -57,6 +57,7 @@
.fam = &proto_fam_unix,
/* socket layer */
+ .proto_type = PROTO_TYPE_DGRAM,
.sock_type = SOCK_DGRAM,
.sock_prot = 0,
.rx_enable = sock_enable,