From: Samuel Thibault <samuel.thibault@gnu.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "J. Kiszka" <jan.kiszka@siemens.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL 0/5] ipv4-only and ipv6-only support
Date: Thu, 31 Mar 2016 16:19:59 +0200 [thread overview]
Message-ID: <20160331141959.GP2636@var.bordeaux.inria.fr> (raw)
In-Reply-To: <CAFEAcA9nesgOExK_pyw7zWji2Bu_Eib-idBVMCCAWu8DUFHw_A@mail.gmail.com>
Peter Maydell, on Thu 31 Mar 2016 15:11:27 +0100, wrote:
> On 31 March 2016 at 13:51, Samuel Thibault <samuel.thibault@gnu.org> wrote:
> > Peter Maydell, on Thu 31 Mar 2016 13:47:28 +0100, wrote:
> >> On 31 March 2016 at 10:20, Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
> >> > Update version for v2.6.0-rc0 release (2016-03-30 19:25:40 +0100)
> >> >
> >> > are available in the git repository at:
> >> >
> >> > http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault-2
> >> >
> >> > for you to fetch changes up to c99751f2a711e9eecf60901520c6d4197bdaf9b4:
> >> >
> >> > slirp: Add RDNSS advertisement (2016-03-31 11:18:13 +0200)
> >> >
> >> > ----------------------------------------------------------------
> >> > slirp updates (2)
> >> >
> >> > ----------------------------------------------------------------
> >> > Samuel Thibault (5):
> >> > slirp: Allow disabling IPv4 or IPv6
> >> > slirp: Split get_dns_addr
> >> > slirp: Add dns6 resolution
> >> > slirp: Support link-local DNS addresses
> >> > slirp: Add RDNSS advertisement
> >>
> >> Hi. I'm afraid this doesn't build for Windows:
> >
> > Indeed, I forgot to fix the the windows version of the function, could
> > you try with the attached change?
>
> I'm afraid that's not sufficient:
Ah, this is using -Werror, OK, here are more fixes.
Samuel
diff --git a/slirp/libslirp.h b/slirp/libslirp.h
index 81bd139..b6fc584 100644
--- a/slirp/libslirp.h
+++ b/slirp/libslirp.h
@@ -7,7 +7,7 @@ struct Slirp;
typedef struct Slirp Slirp;
int get_dns_addr(struct in_addr *pdns_addr);
-int get_dns6_addr(struct in6_addr *pdns6_addr, unsigned *scope_id);
+int get_dns6_addr(struct in6_addr *pdns6_addr, uint32_t *scope_id);
Slirp *slirp_init(int restricted, bool in_enabled, struct in_addr vnetwork,
struct in_addr vnetmask, struct in_addr vhost,
diff --git a/slirp/slirp.c b/slirp/slirp.c
index c6bcc6e..551a63c 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -46,9 +50,13 @@ static QTAILQ_HEAD(slirp_instances, Slirp) slirp_instances =
QTAILQ_HEAD_INITIALIZER(slirp_instances);
static struct in_addr dns_addr;
+#ifndef _WIN32
static struct in6_addr dns6_addr;
+#endif
static u_int dns_addr_time;
+#ifndef _WIN32
static u_int dns6_addr_time;
+#endif
#define TIMEOUT_FAST 2 /* milliseconds */
#define TIMEOUT_SLOW 499 /* milliseconds */
@@ -110,7 +110,7 @@ int get_dns_addr(struct in_addr *pdns_addr)
return 0;
}
-int get_dns6_addr(struct in6_addr *pdns6_addr, unsigned *scope_id)
+int get_dns6_addr(struct in6_addr *pdns6_addr, uint32_t *scope_id)
{
return -1;
}
@@ -146,7 +146,7 @@ static int get_dns_addr_cached(void *pdns_addr, void *cached_addr,
}
static int get_dns_addr_resolv_conf(int af, void *pdns_addr, void *cached_addr,
- socklen_t addrlen, unsigned *scope_id,
+ socklen_t addrlen, uint32_t *scope_id,
u_int *cached_time)
{
char buff[512];
@@ -229,7 +229,7 @@ int get_dns_addr(struct in_addr *pdns_addr)
sizeof(dns_addr), NULL, &dns_addr_time);
}
-int get_dns6_addr(struct in6_addr *pdns6_addr, unsigned *scope_id)
+int get_dns6_addr(struct in6_addr *pdns6_addr, uint32_t *scope_id)
{
static struct stat dns6_addr_stat;
next prev parent reply other threads:[~2016-03-31 14:20 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 9:20 [Qemu-devel] [PULL 0/5] ipv4-only and ipv6-only support Samuel Thibault
2016-03-31 9:20 ` [Qemu-devel] [PULL 1/5] slirp: Allow disabling IPv4 or IPv6 Samuel Thibault
2016-03-31 9:20 ` [Qemu-devel] [PULL 2/5] slirp: Split get_dns_addr Samuel Thibault
2016-03-31 9:20 ` [Qemu-devel] [PULL 3/5] slirp: Add dns6 resolution Samuel Thibault
2016-03-31 9:20 ` [Qemu-devel] [PULL 4/5] slirp: Support link-local DNS addresses Samuel Thibault
2016-03-31 9:20 ` [Qemu-devel] [PULL 5/5] slirp: Add RDNSS advertisement Samuel Thibault
2016-03-31 11:30 ` [Qemu-devel] [PULL 0/5] ipv4-only and ipv6-only support Peter Maydell
2016-03-31 11:44 ` Samuel Thibault
2016-03-31 11:49 ` Vasiliy Tolstov
2016-03-31 11:57 ` Samuel Thibault
2016-03-31 12:03 ` Vasiliy Tolstov
2016-03-31 12:04 ` Vasiliy Tolstov
2016-03-31 12:14 ` Samuel Thibault
2016-03-31 12:20 ` Vasiliy Tolstov
2016-03-31 12:10 ` Samuel Thibault
2016-03-31 12:20 ` Vasiliy Tolstov
2016-03-31 12:47 ` Peter Maydell
2016-03-31 12:51 ` Samuel Thibault
2016-03-31 14:11 ` Peter Maydell
2016-03-31 14:19 ` Samuel Thibault [this message]
2016-03-31 14:44 ` Peter Maydell
2016-03-31 14:49 ` 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=20160331141959.GP2636@var.bordeaux.inria.fr \
--to=samuel.thibault@gnu.org \
--cc=jan.kiszka@siemens.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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).