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] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 11 Apr 2017 09:35:53 +0100
From:   Robert Shearman <rshearma@...cade.com>
To:     David Ahern <dsa@...ulusnetworks.com>, <netdev@...r.kernel.org>
CC:     <stephen@...workplumber.org>
Subject: Re: [PATCH iproute2 net-next 1/2] iproute: Add support for
 ttl-propagation attribute

On 11/04/17 04:43, David Ahern wrote:
> On 4/10/17 8:36 AM, Robert Shearman wrote:
>> @@ -1184,6 +1192,20 @@ static int iproute_modify(int cmd, unsigned int flags, int argc, char **argv)
>>
>>  			if (rta->rta_len > RTA_LENGTH(0))
>>  				addraw_l(&req.n, 1024, RTA_DATA(rta), RTA_PAYLOAD(rta));
>> +		} else if (strcmp(*argv, "ttl-propagate") == 0) {
>> +			__u8 ttl_prop;
>> +
>> +			NEXT_ARG();
>> +			if (strcmp(*argv, "enabled") == 0)
>> +				ttl_prop = 1;
>> +			else if (strcmp(*argv, "disabled") == 0)
>> +				ttl_prop = 0;
>> +			else
>> +				invarg("\"ttl-propagate\" value is invalid\n",
>> +				       *argv);
>> +
>
> matches() instead of strcmp() is more user friendly. 'enabled' is a lot
> to type. ;-)
>

Ok, will change as suggested in v2.

Thanks for reviewing,
Rob

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ