[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140424.132601.1353360035894164439.davem@davemloft.net>
Date: Thu, 24 Apr 2014 13:26:01 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: roy.qing.li@...il.com
Cc: dborkman@...hat.com, netdev@...r.kernel.org, joe@...ches.com
Subject: Re: [PATCH][net-next] tcp: remove the duplicate prefixes in the
logging message
From: Li RongQing <roy.qing.li@...il.com>
Date: Wed, 23 Apr 2014 21:32:43 +0800
> On Wed, Apr 23, 2014 at 5:35 PM, Daniel Borkmann <dborkman@...hat.com> wrote:
>> On 04/23/2014 11:28 AM, roy.qing.li@...il.com wrote:
>>>
>>> From: Li RongQing <roy.qing.li@...il.com>
>>>
>>> The current message is:
>>> TCP: TCP: Possible SYN flooding on port 80. Sending cookies. ...
>>>
>>> The cause is that pr_info will implicitly print the pr_fmt string, which
>>> is standard
>>> prefix, and explicitly print the "proto" which is "TCP:" too
>>>
>>> it is unsuitable to not print proto, since proto maybe TCPv6, so use
>>> printk directly.
>>
>>
>> Can't you just leave the pr_info() instead, and reword that into something
>> like:
>>
>> "Possible %s SYN flooding[...]", proto
> To ipv4:
>
> TCP: Possible TCP SYN flooding on port 80. Sending cookies. ...
>
> To ipv6:
>
> TCP: Possible TCPv6 SYN flooding on port 80. Sending cookies. ...
>
>
> I think there are two "TCP" still, and it is duplicate;
Just kill the proto string altogether, I don't think it doesn't adds
anything.
--
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