From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>,
qemu-devel@nongnu.org, jasowang@redhat.com
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH] slirp: Allow non-local DNS address when restrict is off
Date: Tue, 1 Oct 2019 11:04:32 +0200 [thread overview]
Message-ID: <b49bd2a3-5280-136a-cc35-3d7c14b0a19c@redhat.com> (raw)
In-Reply-To: <20190929181303.19960-1-samuel.thibault@ens-lyon.org>
Hi Samuel,
On 9/29/19 8:13 PM, Samuel Thibault wrote:
> 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.
>
> This fixes LP 1010484.
Wow, 7 years old...
Can you use this format, easier to understand for newcomers:
Fixes: https://bugs.launchpad.net/qemu/+bug/1010484
>
> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> ---
> net/slirp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/slirp.c b/net/slirp.c
> index f42f496641..4d158b0542 100644
> --- a/net/slirp.c
> +++ b/net/slirp.c
> @@ -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;
> }
>
What about the IPv6 DNS?
Regards,
Phil.
next prev parent reply other threads:[~2019-10-01 9:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-29 18:13 [PATCH] slirp: Allow non-local DNS address when restrict is off Samuel Thibault
2019-09-29 18:26 ` Marc-André Lureau
2019-10-01 9:04 ` Philippe Mathieu-Daudé [this message]
2019-10-01 9:31 ` Thomas Huth
-- strict thread matches above, loose matches on Subject: below --
2019-10-01 15:39 Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b49bd2a3-5280-136a-cc35-3d7c14b0a19c@redhat.com \
--to=philmd@redhat.com \
--cc=jasowang@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=samuel.thibault@ens-lyon.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).