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] [day] [month] [year] [list]
Message-ID:
 <MAZP287MB0503ED9A05F83485CABD2513E4312@MAZP287MB0503.INDP287.PROD.OUTLOOK.COM>
Date: Fri, 22 Mar 2024 20:33:06 +0800
From: Date Huang <tjjh89017@...mail.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: roopa@...dia.com, razor@...ckwall.org, netdev@...r.kernel.org,
 bridge@...ts.linux-foundation.org
Subject: Re: [PATCH] bridge: vlan: fix compressvlans manpage and usage

Hi Jiri

On 3/22/2024 5:40 PM, Jiri Pirko wrote:
> Fri, Mar 22, 2024 at 09:56:29AM CET, tjjh89017@...mail.com wrote:
>> Add the missing 'compressvlans' to man page.
>> Fix the incorrect short opt for compressvlans and color
>> in usage.
> 
> Split to 2 patches please.
> 
> Please fix your prefix to be in format "[patch iproute2-next] xxx"
> to properly indicate the target project and tree.

Thank you, I will update this in v2.

> 
> 
>>
>> Signed-off-by: Date Huang <tjjh89017@...mail.com>
>> ---
>> bridge/bridge.c   | 2 +-
>> man/man8/bridge.8 | 5 +++++
>> 2 files changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/bridge/bridge.c b/bridge/bridge.c
>> index f4805092..345f5b5f 100644
>> --- a/bridge/bridge.c
>> +++ b/bridge/bridge.c
>> @@ -39,7 +39,7 @@ static void usage(void)
>> "where  OBJECT := { link | fdb | mdb | vlan | vni | monitor }\n"
>> "       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |\n"
>> "                    -o[neline] | -t[imestamp] | -n[etns] name |\n"
>> -"                    -c[ompressvlans] -color -p[retty] -j[son] }\n");
>> +"                    -compressvlans -c[olor] -p[retty] -j[son] }\n");
> 
>  From how I read the code, shouldn't this be rather:
>    "                    -com[pressvlans] -c[olor] -p[retty] -j[son] }\n");
> ?

Agree with you, I will update it in v2.

> 
>> 	exit(-1);
>> }
>>
>> diff --git a/man/man8/bridge.8 b/man/man8/bridge.8
>> index eeea4073..9a023227 100644
>> --- a/man/man8/bridge.8
>> +++ b/man/man8/bridge.8
>> @@ -22,6 +22,7 @@ bridge \- show / manipulate bridge addresses and devices
>> \fB\-s\fR[\fItatistics\fR] |
>> \fB\-n\fR[\fIetns\fR] name |
>> \fB\-b\fR[\fIatch\fR] filename |
>> +\fB\-compressvlans |
>> \fB\-c\fR[\fIolor\fR] |
>> \fB\-p\fR[\fIretty\fR] |
>> \fB\-j\fR[\fIson\fR] |
>> @@ -345,6 +346,10 @@ Don't terminate bridge command on errors in batch mode.
>> If there were any errors during execution of the commands, the application
>> return code will be non zero.
>>
>> +.TP
>> +.BR \-compressvlans
>> +Show compressed vlan list
>> +
>> .TP
>> .BR \-c [ color ][ = { always | auto | never }
>> Configure color output. If parameter is omitted or
>> -- 
>> 2.34.1
>>
>>

Thanks,
Date

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ