]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: unify the two functions to create extra stubs
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Sep 2020 14:14:54 +0000 (16:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Sep 2020 22:44:53 +0000 (00:44 +0200)
commitb5febb3f56d17767e5e46e1fd610df2e762dc384
tree2edd37ecd4d932d4e367134f7df6f7872bda703d
parente4bed40f40e32906203ef8886f0435524bd0ebb3
resolved: unify the two functions to create extra stubs

There is a minor functional change:
IPV6_FREEBIND is set of IPv6 sockets, not IP_FREEBIND. This was missed in
af8b1384, but I noticed only after the merging the two functions.

And a not-so-minor functional chagnge:
7216a3b5dcde36245 changed manager_dns_stub_tcp_fd_extra() to return the fd even
if the source was already initialized, but it didn't do the same change for
manager_dns_stub_udp_fd_extra(), so it would return 0 in that case. But
0354029bf572489b uses manager_dns_stub_udp_fd_extra() when preparing to call
manager_send(), and will pass 0 as the fd in that case. For both socket types
fd is now always returned.
src/resolve/resolved-dns-stub.c