[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231113093429.434186eb@hermes.local>
Date: Mon, 13 Nov 2023 09:34:29 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: razor@...ckwall.org, martin.lau@...nel.org, netdev@...r.kernel.org
Subject: Re: [PATCH iproute2] ip, link: Add support for netkit
On Mon, 13 Nov 2023 04:23:23 +0100
Daniel Borkmann <daniel@...earbox.net> wrote:
> + if (tb[IFLA_NETKIT_POLICY]) {
> + __u32 policy = rta_getattr_u32(tb[IFLA_NETKIT_POLICY]);
> + const char *policy_str =
> + policy == NETKIT_PASS ? "forward" :
> + policy == NETKIT_DROP ? "blackhole" : "unknown";
> +
If you plan to add more modes in future, a table or helper would be good idea.
Powered by blists - more mailing lists