lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240415145238.0f5286a3@hermes.local>
Date: Mon, 15 Apr 2024 14:52:38 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Wojciech Drewek <wojciech.drewek@...el.com>
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [PATCH iproute2-next v2 2/2] f_flower: implement pfcp opts

On Mon, 15 Apr 2024 14:50:00 +0200
Wojciech Drewek <wojciech.drewek@...el.com> wrote:

> 	} else if (key_tb[TCA_FLOWER_KEY_ENC_OPTS_PFCP]) {
> +		flower_print_pfcp_opts("pfcp_opt_key",
> +				key_tb[TCA_FLOWER_KEY_ENC_OPTS_PFCP],
> +				key, len);
> +
> +		if (msk_tb[TCA_FLOWER_KEY_ENC_OPTS_PFCP])
> +			flower_print_pfcp_opts("pfcp_opt_mask",
> +				msk_tb[TCA_FLOWER_KEY_ENC_OPTS_PFCP],
> +				msk, len);
> +
> +		flower_print_enc_parts(name, "  pfcp_opts %s", attr, key,
> +				       msk);
>  	}

I find the output with pfcp_opt_key and pfcp_opt_mask encoded as hex,
awkward when JSON.

The JSON output would be more logical as something like:

	"pfcp" : {
		"mask": {
			"type": 0x0000,
			"seid": 0x1,
		},
		"key": {
			"type": 0x10,
			"seid": 0x11,
		}
	}


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ