mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-09 19:06:14 -04:00
MINOR: tools: Implement net_addr_type_is_quic()
Implement net_addr_type_is_quic(), that returns 1 if the provided net_addr_type looks like it is using QUIC, and 0 otherwise.
This commit is contained in:
parent
2eefd489c2
commit
2140249c18
1 changed files with 6 additions and 0 deletions
|
|
@ -1545,4 +1545,10 @@ void ha_memset_s(void *s, int c, size_t n);
|
|||
|
||||
void chunk_append_thread_ctx(struct buffer *output, const struct thread_exec_ctx *ctx, const char *pfx, const char *sfx);
|
||||
|
||||
static inline int net_addr_type_is_quic(struct net_addr_type *type)
|
||||
{
|
||||
return type->proto_type == PROTO_TYPE_DGRAM &&
|
||||
type->xprt_type == PROTO_TYPE_STREAM;
|
||||
}
|
||||
|
||||
#endif /* _HAPROXY_TOOLS_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue