]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: sock_inet: move v6only_default from proto_tcp.c to sock_inet.c
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 14:06:01 +0000 (16:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commitd88e8c06ac076d5550366aa6a283ad485948975e
tree42708182389d0b5fa36a4dc6cecd865d309edbe4
parent25140cc5733a67173421681cfe5b8b010ea6891d
REORG: sock_inet: move v6only_default from proto_tcp.c to sock_inet.c

The v6only_default variable is not specific to TCP but to AF_INET6, so
let's move it to the right file. It's now immediately filled on startup
during the PREPARE stage so that it doesn't have to be tested each time.
The variable's name was changed to sock_inet6_v6only_default.
include/haproxy/sock_inet.h
src/proto_tcp.c
src/sock_inet.c