MINOR: mux: Add info about the supported side in alpn_mux_list structure
Now, a multiplexer can specify if it can be install on incoming connections
(ALPN_SIDE_FE), on outgoing connections (ALPN_SIDE_BE) or both
(ALPN_SIDE_BOTH). These flags are compatible with proxies' ones.
diff --git a/include/types/connection.h b/include/types/connection.h
index cf5dbb6..46d74fe 100644
--- a/include/types/connection.h
+++ b/include/types/connection.h
@@ -429,9 +429,17 @@
ALPN_MODE_ANY = ALPN_MODE_TCP | ALPN_MODE_HTTP,
};
+enum alpn_proxy_side {
+ ALPN_SIDE_NONE = 0,
+ ALPN_SIDE_FE = 1, // same as PR_CAP_FE
+ ALPN_SIDE_BE = 2, // same as PR_CAP_BE
+ ALPN_SIDE_BOTH = ALPN_SIDE_FE | ALPN_SIDE_BE,
+};
+
struct alpn_mux_list {
const struct ist token; /* token name and length. Empty is catch-all */
enum alpn_proxy_mode mode;
+ enum alpn_proxy_side side;
const struct mux_ops *mux;
struct list list;
};