On Thu, 20 Aug 2020 20:52:02 -0700 Roopa Prabhu <ro...@cumulusnetworks.com> wrote:
> + if (tb[IFLA_PROTO_DOWN]) { > + if (rta_getattr_u8(tb[IFLA_PROTO_DOWN])) > + print_bool(PRINT_ANY, > + "proto_down", " protodown on ", true); In general my preference is to use print_null() for presence flags. Otherwise you have to handle the false case in JSON as a special case.