]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: start to distinguish stream and dgram in str2sa_range()
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 09:35:47 +0000 (11:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:08 +0000 (22:08 +0200)
commite835bd8f9105c8ea03c0a1596bd42de999a1d426
treec36028c2ad9739b91dc8b0dfb99c5b2b53baec36
parenta215be282d4467a01c962b10bf4132101794557c
MINOR: tools: start to distinguish stream and dgram in str2sa_range()

The parser now supports a socket type for the control layer and a possible
other one for the transport layer. Usually they are the same except for
protocols like QUIC which will provide a stream transport layer based on
a datagram control layer. The default types are preset based on the caller's
expectations, and may be refined using "stream+" and "dgram+" prefixes.

For now they were not added to the docuemntation because other changes
will probably happen around UDP as well. It is conceivable that "tcpv4@"
or "udpv6@" will appear later as aliases for "stream+ipv4" or "dgram+ipv6".
src/tools.c