[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150709060918.GB2270@nanopsycho.orion>
Date: Thu, 9 Jul 2015 08:09:18 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org
Subject: Re: [patch iproute2] iproute2: ipa: show switch id
Thu, Jul 09, 2015 at 03:05:10AM CEST, stephen@...workplumber.org wrote:
>On Wed, 8 Jul 2015 17:08:18 +0200
>Jiri Pirko <jiri@...nulli.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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists