]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
amend! daemon/proxyv2: move PROXY protocol into its own layer docs-develop-nits-2dntdj/deployments/4201
authorOto Šťáva <oto.stava@nic.cz>
Tue, 28 May 2024 15:03:24 +0000 (17:03 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Tue, 28 May 2024 15:09:11 +0000 (17:09 +0200)
daemon/proxyv2: move PROXY protocol into its own layer

Previously, PROXYv2 handling was partially implemented in the `io.c`
unit in the `_TCP` and `_UDP` protocol layers, which technically made
very little sense. This commit moves this handling into separate
`_PROXYV2_DGRAM` and `_PROXYV2_STREAM` protocol layers, basically
encapsulating the handling of proxies in the `proxyv2.c` unit.

This commit also removes support for `PROTOLAYER_PAYLOAD_IOVEC`-type
buffers from the PROXYv2 layer, as it was unused in this context.


No differences found