]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: sockpair: implement sockpair_bind_receiver()
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Sep 2020 15:52:23 +0000 (17:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:07 +0000 (22:08 +0200)
commit62292b28a372b4e875c015e49edfb94a8ef4773e
tree497214f427a3abe8a8f72ae6ebc4a81840355c3e
parentcd5e5eaf501afb6d6550435b077da773c0e37cc6
MEDIUM: sockpair: implement sockpair_bind_receiver()

Note that for now we don't have a sockpair.c file to host that unusual
family, so the new function was placed directly into proto_sockpair.c.
It's no big deal given that this family is currently not shared with
multiple protocols.

The function does almost nothing but setting up the receiver. This is
normal as the socket the FDs are passed onto are supposed to have been
already created somewhere else, and the only usable identifier for such
a socket pair is the receiving FD itself.

The function was assigned to sockpair's ->bind() and is not used yet.
include/haproxy/proto_sockpair.h
src/proto_sockpair.c