[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f1854274-653a-414a-9300-c2e805d2ce14@kernel.org>
Date: Wed, 26 Feb 2025 08:56:59 -0700
From: David Ahern <dsahern@...nel.org>
To: Jordan Rife <jordan@...fe.io>, Daniel Borkmann <daniel@...earbox.net>,
Nikolay Aleksandrov <razor@...ckwall.org>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org, stephen@...workplumber.org
Subject: Re: [PATCH iproute2-next v2] ip: link: netkit: Support scrub options
On 2/24/25 9:49 AM, Jordan Rife wrote:
> diff --git a/ip/iplink_netkit.c b/ip/iplink_netkit.c
> index 49550a2e..818da119 100644
> --- a/ip/iplink_netkit.c
> +++ b/ip/iplink_netkit.c
> @@ -24,13 +24,19 @@ static const char * const netkit_policy_strings[] = {
> [NETKIT_DROP] = "blackhole",
> };
>
> +static const char * const netkit_scrub_strings[] = {
> + [NETKIT_SCRUB_NONE] = "none",
> + [NETKIT_SCRUB_DEFAULT] = "default",
> +};
> +
> static void explain(struct link_util *lu, FILE *f)
> {
> fprintf(f,
> - "Usage: ... %s [ mode MODE ] [ POLICY ] [ peer [ POLICY <options> ] ]\n"
> + "Usage: ... %s [ mode MODE ] [ POLICY ] [ scrub SCRUB ] [ peer [ POLICY <options> ] ]\n"
> "\n"
> "MODE: l3 | l2\n"
> "POLICY: forward | blackhole\n"
> + "SCRUB: default | none\n"
needs an update to the man page.
Powered by blists - more mailing lists