[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Wed Mar 24 20:59:37 UTC 2021
New commits:
commit d0ca0e7da4d5cfc18f14b21869224ecfc5632356
Author: Andrew Cagney <cagney at gnu.org>
Date: Wed Mar 24 14:25:14 2021 -0400
dns: update unbound_resolve(), resolve nexthop using the HOST's address family
For nexthop, instead of trying IPv4 and then IPv6 and taking the first
that succeeds, resolve nexthop's DNS name using the previously
determined HOST's address family.
For sourceip, there's no change. However I suspect it should be doing
something similar but with the previously determined CLIENT's address
family.
More specifically, in unbound_resolve():
- drop redundent srclen parameter (always use strlen)
- replace AF_* af with ip_info *afi
- directly convert raw A/AAAA record to an address
in callers:
- update parameter list
- for NEXTHOP, per above, pass HOSTFAM into dns lookup function
- for SOURCEIP, no change, try IPv4 then IPv6
- when #ifdef unbound, first try with ttoaddress_num()
- when #ifndef unbound, use ttoaddress_dns()
(which leads to deleting tnatoaddr())
commit 5a9b141e2b5baa077287c74674096768905dd81f
Author: Andrew Cagney <cagney at gnu.org>
Date: Wed Mar 24 09:51:45 2021 -0400
ip: eliminate address_from_blit()
More information about the Swan-commit
mailing list