slirp update
The following changes since commit 860d9048c78ce59c5903c3d5209df56f38400986:
Merge remote-tracking branch 'remotes/kraxel/tags/audio-20190924-pull-request' into staging (2019-09-24 13:51:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to 120b721f5b590393971673a315f02969ec89cccb:
slirp: Allow non-local DNS address when restrict is off (2019-10-01 19:03:08 +0200)
----------------------------------------------------------------
slirp: Allow non-local DNS address when restrict is off
----------------------------------------------------------------
Samuel Thibault (1):
slirp: Allow non-local DNS address when restrict is off
net/slirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
[PULL 1/1] slirp: Allow non-local DNS address when restrict is off
This can be used to set a DNS server to be used by the guest which is different from the one configured on the host.
--- net/slirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/slirp.c +2 -2
@@ -456,7 +456,7 @@ static int net_slirp_init(NetClientState *peer, const char *model,error_setg (errp,"Failed to parse DNS" );return -1 ; } -if ((dns.s_addr & mask.s_addr) != net.s_addr) { +if (restricted && (dns.s_addr & mask.s_addr) != net.s_addr) {error_setg (errp,"DNS doesn't belong to network" );return -1 ; }
@@ -522,7 +522,7 @@ static int net_slirp_init(NetClientState *peer, const char *model,error_setg (errp,"Failed to parse IPv6 DNS" );return -1 ; } -if (!in6_equal_net (&ip6_prefix, &ip6_dns, vprefix6_len)) { +if (restricted && !in6_equal_net (&ip6_prefix, &ip6_dns, vprefix6_len)) {error_setg (errp,"IPv6 DNS doesn't belong to network" );return -1 ; }
Signature · 1 line
2.23.0
Peter Maydell
AppliedQuoted 16 lines · Samuel Thibault
The following changes since commit
860d9048c78ce59c5903c3d5209df56f38400986:Merge remote-tracking branch 'remotes/kraxel/tags/audio-20190924-pull-request' into staging (2019-09-24 13:51:51 +0100)
are available in the Git repository at:
https://people.debian.org/~sthibault/qemu.git tags/samuel-thibault
for you to fetch changes up to
120b721f5b590393971673a315f02969ec89cccb:slirp: Allow non-local DNS address when restrict is off (2019-10-01 19:03:08 +0200)
----------------------------------------------------------------
slirp: Allow non-local DNS address when restrict is off
Quoted 6 lines
----------------------------------------------------------------
Samuel Thibault (1):
slirp: Allow non-local DNS address when restrict is offnet/slirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.
-- PMM