[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240519155843.2fc8e95a@hermes.local>
Date: Sun, 19 May 2024 15:58:43 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Antony Antony <antony.antony@...unet.com>
Cc: David Ahern <dsahern@...il.com>, <netdev@...r.kernel.org>,
<devel@...ux-ipsec.org>, Steffen Klassert <steffen.klassert@...unet.com>,
Eyal Birger <eyal.birger@...il.com>, Nicolas Dichtel
<nicolas.dichtel@...nd.com>, Sabrina Dubroca <sd@...asysnail.net>,
"Christian Hopps" <chopps@...pps.org>
Subject: Re: [PATCH RFC iproute2-next 2/3] xfrm: support xfrm SA direction
attribute
On Sun, 19 May 2024 20:37:23 +0200
Antony Antony <antony.antony@...unet.com> wrote:
> + if (tb[XFRMA_SA_DIR]) {
> + __u8 dir = rta_getattr_u8(tb[XFRMA_SA_DIR]);
> +
> + fprintf(fp, "\tdir ");
> + if (dir == XFRM_SA_DIR_IN)
> + fprintf(fp, "in");
> + else if (dir == XFRM_SA_DIR_OUT)
> + fprintf(fp, "out");
> + else
> + fprintf(fp, " %d", dir);
> + fprintf(fp, "%s", _SL_);
> + }
JSON output support please
Powered by blists - more mailing lists