]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: inet: replace tcp_is_foreign() with sock_inet_is_foreign()
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 13:40:33 +0000 (15:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Aug 2020 16:51:36 +0000 (18:51 +0200)
commit25140cc5733a67173421681cfe5b8b010ea6891d
tree3ed0b5e5a0dc915ffef54d5389455bbf3f285bd4
parentc5a94c936b26432488a1a7577a79e74d6b0d2ffa
REORG: inet: replace tcp_is_foreign() with sock_inet_is_foreign()

The function now makes it clear that it's independent on the socket
type and solely relies on the address family. Note that it supports
both IPv4 and IPv6 as we don't seem to need it per-family.
include/haproxy/sock_inet.h
src/haproxy.c
src/proto_tcp.c
src/sock_inet.c