]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sock_set_mark: take sock family in account
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Thu, 25 Apr 2024 16:57:27 +0000 (18:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 30 Apr 2024 19:38:29 +0000 (21:38 +0200)
commit772d070ab54a9a5c30bfb5d65178c4bbc978a61c
treeb67770aa784258b1846dc9c3819514fb5c401b34
parentd602d568e01c5df026a921a25b67a7c77d3eefc4
MINOR: sock_set_mark: take sock family in account

SO_MARK, SO_USER_COOKIE, SO_RTABLE socket options (used to set the special
mark/ID on socket, in order to perform mark-based routing) are only supported
by AF_INET sockets. So, let's check socket address family, when we enter into
this function.
include/haproxy/connection.h
include/haproxy/sock.h
src/sock.c