]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: use conn->{src,dst} instead of &conn->addr.{from,to}
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 12:46:00 +0000 (14:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commit226572f55f2d6cad991a45643036c8cc205bbd34
treed15355df372ba371ca536a93b56d99a46564f2fe
parent1ef4cbc693293d78dbce57217bce6bf96b22739f
MINOR: connection: use conn->{src,dst} instead of &conn->addr.{from,to}

This is in preparation for the switch to dynamic address allocation,
let's migrate the code using the old fields to the pointers instead.
Note that no extra check was added for now, the purpose is only to
get the code to use the pointers and still work.

In the proxy protocol message handling we make sure the addresses are
properly allocated before declaring them unset.
include/proto/connection.h
src/connection.c