Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Roland Kammerer <roland.kammerer@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [PATCH] Correctly skip interface indexes larger than 256
Date: Mon, 17 Nov 2014 13:28:36 +0100	[thread overview]
Message-ID: <20141117122836.GT2136@rck.sh> (raw)
In-Reply-To: <20141116143543.GA26665@miriup.de>

On Sun, Nov 16, 2014 at 06:35:43PM +0400, Dirk Tilger wrote:
> -		X32(08) X32(08) X32(08) X32(08) " %*02x %*02x %*02x %*02x %s",
> +		X32(08) X32(08) X32(08) X32(08) " %*x %*x %*x %*x %s",

Are numbers larger than 0xff even possible?

We read the string from "/proc/net/if_inet6", and to me it looks like
the interfaces limits the input range to values <= 255 [1].

Would be great if you could provide an example where it really makes a
difference, i.e. how to get lager values than 255 in the ignored format
string positions.

Regards, rck

[1] http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/proc-net.html

  reply	other threads:[~2014-11-17 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-16 14:35 [Drbd-dev] [PATCH] Correctly skip interface indexes larger than 256 Dirk Tilger
2014-11-17 12:28 ` Roland Kammerer [this message]
2014-11-17 14:14   ` Roland Kammerer

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=20141117122836.GT2136@rck.sh \
    --to=roland.kammerer@linbit.com \
    --cc=drbd-dev@lists.linbit.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox