All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: jasowang@redhat.com, jan.kiszka@siemens.com, thuth@redhat.com,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6
Date: Mon, 21 Mar 2016 08:33:52 +0100	[thread overview]
Message-ID: <87h9g0ffof.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <1458473954-18583-1-git-send-email-samuel.thibault@ens-lyon.org> (Samuel Thibault's message of "Sun, 20 Mar 2016 12:39:14 +0100")

Samuel Thibault <samuel.thibault@ens-lyon.org> writes:

> Make net=0.0.0.0 disable IPv4 and ip6-net=:: disable IPv6, so the user can
> setup IPv4-only and IPv6-only network environments.

Do "net=" and "ip6-net=" mean anything useful?  If not, wouldn't that be
a more natural way to switch off than abusing the wildcard address?

Quick interface review:

[...]
> diff --git a/qapi-schema.json b/qapi-schema.json
> index 88f9b81..69eb6e7 100644
> --- a/qapi-schema.json
> +++ b/qapi-schema.json
> @@ -2427,7 +2427,7 @@
>  #
>  # @ip: #optional legacy parameter, use net= instead
>  #
> -# @net: #optional IP address and optional netmask
> +# @net: #optional IP address and optional netmask. Set to 0.0.0.0 to disable IPv4 completely

Long line.

Syntax?  Default value?

>  #
>  # @host: #optional guest-visible address of the host
>  #
> @@ -2443,7 +2443,7 @@
>  # @dnssearch: #optional list of DNS suffixes to search, passed as DHCP option
>  #             to the guest
>  #
> -# @ip6-prefix: #optional IPv6 network prefix (default is fec0::) (since 2.6)
> +# @ip6-prefix: #optional IPv6 network prefix. Set to :: to disable IPv6 completely (default is fec0::) (since 2.6)

Long line.  Syntax?

(default is fec0::) is now in a confusing spot.  Suggest

    # @ip6-prefix: #optional IPv6 network prefix (default is fec0::)
    # Set to :: to disable IPv6 completely.
    # (since 2.6)

>  #
>  # @ip6-prefixlen: #optional IPv6 network prefix length (default is 64) (since 2.6)
>  #
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 732ed8c..4938213 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -1712,8 +1712,8 @@ Assign symbolic name for use in monitor commands.
>  
>  @item net=@var{addr}[/@var{mask}]
>  Set IP network address the guest will see. Optionally specify the netmask,
> -either in the form a.b.c.d or as number of valid top-most bits. Default is
> -10.0.2.0/24.
> +either in the form a.b.c.d or as number of valid top-most bits. Set to 0.0.0.0
> +to disable IPv4 completely. Default is 10.0.2.0/24.

Long line.

>  @item host=@var{addr}
>  Specify the guest-visible address of the host. Default is the 2nd IP in the
> @@ -1721,7 +1721,8 @@ guest network, i.e. x.x.x.2.
>  
>  @item ip6-net=@var{addr}[/@var{int}]
>  Set IPv6 network address the guest will see. Optionally specify the prefix
> -size, as number of valid top-most bits. Default is fec0::/64.
> +size, as number of valid top-most bits. Set to :: to disable IPv6 completely.
> +Default is fec0::/64.
>  
>  @item ip6-host=@var{addr}
>  Specify the guest-visible IPv6 address of the host. Default is the 2nd IPv6 in
[...]

  parent reply	other threads:[~2016-03-21  7:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-20 11:39 [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6 Samuel Thibault
2016-03-20 13:32 ` Samuel Thibault
2016-03-21  7:33 ` Thomas Huth
2016-03-21  7:33 ` Markus Armbruster [this message]
2016-03-21  9:02   ` Samuel Thibault
2016-03-21  9:44     ` Markus Armbruster
2016-03-21 23:55   ` Samuel Thibault
2016-03-22  7:41     ` Markus Armbruster
2016-03-22  8:02       ` Thomas Huth
2016-03-22 21:46   ` Samuel Thibault
2016-03-23 10:01     ` Markus Armbruster
2016-03-23 10:13 ` Daniel P. Berrange

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=87h9g0ffof.fsf@blackfin.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=jasowang@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=thuth@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.