Re: [PATCH iproute2-next v2] ip: link: netkit: Support scrub options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux