Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1518623 > unrolled thread
| Started by | David Miller <davem@davemloft.net> |
|---|---|
| First post | 2016-11-10 02:30 +0100 |
| Last post | 2016-11-10 15:50 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [Regression w/ patch] Restore network resistance to weird ICMP messages David Miller <davem@davemloft.net> - 2016-11-10 02:30 +0100
Re: [Regression w/ patch] Restore network resistance to weird ICMP messages Vicente Jiménez <googuy@gmail.com> - 2016-11-10 12:00 +0100
Re: [Regression w/ patch] Restore network resistance to weird ICMP messages David Miller <davem@davemloft.net> - 2016-11-10 15:50 +0100
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-11-10 02:30 +0100 |
| Subject | Re: [Regression w/ patch] Restore network resistance to weird ICMP messages |
| Message-ID | <sBMlI-77l-5@gated-at.bofh.it> |
From: Vicente Jiménez <googuy@gmail.com>
Date: Mon, 7 Nov 2016 12:11:59 +0100
> From bfc9a00e6b78d8eb60e46dacd7d761669d29a573 Mon Sep 17 00:00:00 2001
> From: Vicente Jimenez Aguilar <googuy@gmail.com>
> Date: Mon, 31 Oct 2016 13:10:29 +0100
> Subject: [PATCH] ipv4: icmp: Fix pMTU handling for rarest case
>
> Restore network resistance to weird ICMP fragmentation needed messages
> with next hop MTU equal to (or exceeding) dropped packet size
>
> Fixes: 46517008e116 ("ipv4: Kill ip_rt_frag_needed().")
> Signed-off-by: Vicente Jimenez Aguilar <googuy@gmail.com>
> ---
> net/ipv4/icmp.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
> index 38abe70..c0af1d2 100644
> --- a/net/ipv4/icmp.c
> +++ b/net/ipv4/icmp.c
> @@ -776,6 +776,7 @@ static bool icmp_unreach(struct sk_buff *skb)
> struct icmphdr *icmph;
> struct net *net;
> u32 info = 0;
> + unsigned short old_mtu;
>
> net = dev_net(skb_dst(skb)->dev);
>
Order local variable declarations from longest to shortest line
please.
> + if ( info >= old_mtu )
There should be no space after the '(' and before the ')' in this
conditional.
[toc] | [next] | [standalone]
| From | Vicente Jiménez <googuy@gmail.com> |
|---|---|
| Date | 2016-11-10 12:00 +0100 |
| Subject | Re: [Regression w/ patch] Restore network resistance to weird ICMP messages |
| Message-ID | <sBVfk-4HF-33@gated-at.bofh.it> |
| In reply to | #1518623 |
[Multipart message — attachments visible in raw view] — view raw
Corrected patch attached.
Thanks for the advices.
I was unaware of those style policies.
On Thu, Nov 10, 2016 at 2:22 AM, David Miller <davem@davemloft.net> wrote:
> From: Vicente Jiménez <googuy@gmail.com>
> Date: Mon, 7 Nov 2016 12:11:59 +0100
>
>> From bfc9a00e6b78d8eb60e46dacd7d761669d29a573 Mon Sep 17 00:00:00 2001
>> From: Vicente Jimenez Aguilar <googuy@gmail.com>
>> Date: Mon, 31 Oct 2016 13:10:29 +0100
>> Subject: [PATCH] ipv4: icmp: Fix pMTU handling for rarest case
>>
>> Restore network resistance to weird ICMP fragmentation needed messages
>> with next hop MTU equal to (or exceeding) dropped packet size
>>
>> Fixes: 46517008e116 ("ipv4: Kill ip_rt_frag_needed().")
>> Signed-off-by: Vicente Jimenez Aguilar <googuy@gmail.com>
>> ---
>> net/ipv4/icmp.c | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
>> index 38abe70..c0af1d2 100644
>> --- a/net/ipv4/icmp.c
>> +++ b/net/ipv4/icmp.c
>> @@ -776,6 +776,7 @@ static bool icmp_unreach(struct sk_buff *skb)
>> struct icmphdr *icmph;
>> struct net *net;
>> u32 info = 0;
>> + unsigned short old_mtu;
>>
>> net = dev_net(skb_dst(skb)->dev);
>>
>
> Order local variable declarations from longest to shortest line
> please.
>
>> + if ( info >= old_mtu )
>
> There should be no space after the '(' and before the ')' in this
> conditional.
--
saludos
vicente
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-11-10 15:50 +0100 |
| Message-ID | <sBYPT-7uF-13@gated-at.bofh.it> |
| In reply to | #1518858 |
From: Vicente Jiménez <googuy@gmail.com> Date: Thu, 10 Nov 2016 11:52:01 +0100 > Corrected patch attached. > Thanks for the advices. > I was unaware of those style policies. This is not how to submit a fixed patch. You must make a new, fresh, list posting fully formed and with a clean Subject line and commit message. Not as a reply to the discussion.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web