netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Jiri Pirko <jiri@resnulli.us>
Cc: netdev@vger.kernel.org
Subject: Re: [patch iproute2] iproute2: ipa: show switch id
Date: Thu, 9 Jul 2015 15:22:52 -0700	[thread overview]
Message-ID: <20150709152252.068eb005@urahara> (raw)
In-Reply-To: <20150709060918.GB2270@nanopsycho.orion>

On Thu, 9 Jul 2015 08:09:18 +0200
Jiri Pirko <jiri@resnulli.us> wrote:

> Thu, Jul 09, 2015 at 03:05:10AM CEST, stephen@networkplumber.org wrote:
> >On Wed,  8 Jul 2015 17:08:18 +0200
> >Jiri Pirko <jiri@resnulli.us> wrote:
> >
> >>  
> >> +	if (tb[IFLA_PHYS_SWITCH_ID]) {
> >> +		SPRINT_BUF(b1);
> >> +		fprintf(fp, "switchid %s ",
> >> +			hexstring_n2a(RTA_DATA(tb[IFLA_PHYS_SWITCH_ID]),
> >> +				      RTA_PAYLOAD(tb[IFLA_PHYS_SWITCH_ID]),
> >> +				      b1, sizeof(b1)));
> >> +	}
> >> +
> >
> >Ok, but why hex?
> 
> What else? It is an arbitrary byte array.

Ok I though it was a number.

      reply	other threads:[~2015-07-09 22:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 15:08 [patch iproute2] iproute2: ipa: show switch id Jiri Pirko
2015-07-08 17:18 ` Andy Gospodarek
2015-07-08 21:29 ` David Ahern
2015-07-09  6:11   ` Jiri Pirko
2015-07-09  1:05 ` Stephen Hemminger
2015-07-09  6:09   ` Jiri Pirko
2015-07-09 22:22     ` Stephen Hemminger [this message]

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=20150709152252.068eb005@urahara \
    --to=stephen@networkplumber.org \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.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).