[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54AD08A9.9000205@redhat.com>
Date: Wed, 07 Jan 2015 11:21:29 +0100
From: Daniel Borkmann <dborkman@...hat.com>
To: Stephen Hemminger <stephen@...workplumber.org>
CC: fw@...len.de, netdev@...r.kernel.org
Subject: Re: [PATCH iproute2 -next] ip: route: add congestion control metric
On 01/07/2015 02:09 AM, Stephen Hemminger wrote:
> On Wed, 7 Jan 2015 00:52:37 +0100
> Daniel Borkmann <dborkman@...hat.com> wrote:
>
>> + } else if (matches(*argv, "congctl") == 0) {
>> + char cc[16];
>> + NEXT_ARG();
>> + memset(cc, 0, sizeof(cc));
>> + if (strcmp(*argv, "lock") == 0) {
>> + mxlock |= (1<<RTAX_CC_ALGO);
>
> Unneeded paren
Yep, I kept it consistent across all mxlock assignments of this file,
but I can remove it, sure.
>> + NEXT_ARG();
>> + }
>> + strncpy(cc, *argv, sizeof(cc) - 1);
>> + if (strlen(cc) == 0)
>> + invarg("\"conctl\" value must be an algorithm name\n", *argv
>
> Silently truncating the string is not odd. Can't we just let kernel impose
> length restrictions.
Sure, will respin, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists