[Drbd-dev] [PATCH] Correctly skip interface indexes larger than 256
Roland Kammerer
roland.kammerer at linbit.com
Mon Nov 17 13:28:36 CET 2014
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
More information about the drbd-dev
mailing list