diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-08-21 14:20:05 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-08-21 12:00:06 +0200 |
commit | a6066f4e27b4d731c8903b091866bf2051586bf7 (patch) | |
tree | 4fe4e774d4e16be96eab401201b5d3558a5692fe /passt.h | |
parent | 7c083ee41c9aaa92d1215c6cef87bcd4eb6e20a7 (diff) | |
download | passt-a6066f4e27b4d731c8903b091866bf2051586bf7.tar passt-a6066f4e27b4d731c8903b091866bf2051586bf7.tar.gz passt-a6066f4e27b4d731c8903b091866bf2051586bf7.tar.bz2 passt-a6066f4e27b4d731c8903b091866bf2051586bf7.tar.lz passt-a6066f4e27b4d731c8903b091866bf2051586bf7.tar.xz passt-a6066f4e27b4d731c8903b091866bf2051586bf7.tar.zst passt-a6066f4e27b4d731c8903b091866bf2051586bf7.zip |
conf: Correct setting of dns_match address in add_dns6()
add_dns6() (but not add_dns4()) has a bug setting dns_match: it sets it to
the given address, rather than the gateway address. This is doubly wrong:
- We've just established the given address is a host loopback address
the guest can't access
- We've just set ip6.dns[] to tell the guest to use the gateway address,
so it won't use the dns_match address we're setting
Correct this to use the gateway address, like IPv4.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
0 files changed, 0 insertions, 0 deletions