Subject: Re: [PATCH iproute2-next v2] net:sched: add action inheritdsfield to skbedit

From: Stephen Hemminger <[email-masked]>
Date: Thu, 12 Jul 2018 15:05:26 -0700

On Thu, 12 Jul 2018 12:09:26 -0400
Qiaobin Fu <[email-masked]> wrote:

> +		if (*flags & SKBEDIT_F_INHERITDSFIELD)
> +			print_string(PRINT_ANY, "inheritdsfield", " %s",
> +				     "inheritdsfield");

Flags should be represented in JSON output as a null value (or boolean).
		print_null(PRINT_ANY, "inheritdsfield", " %s", "inheritdsfield");
This will generate:
			"inheritdsfield" : null,
Instead of:

			"inheritdsfield" : "inheritdsfield",