Thu, Jul 09, 2015 at 03:05:10AM CEST, step...@networkplumber.org wrote: >On Wed, 8 Jul 2015 17:08:18 +0200 >Jiri Pirko <j...@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. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html