From: David Miller <davem@davemloft.net>
To: ncardwell@google.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] ipv6: Handle PMTU in ICMP error handlers.
Date: Fri, 15 Jun 2012 20:02:16 -0700 (PDT) [thread overview]
Message-ID: <20120615.200216.1185728435617216812.davem@davemloft.net> (raw)
In-Reply-To: <CADVnQyn+t8VjgqqACDvSDR3yMN-q8xntGwVwWNxB4TFLxUYU8g@mail.gmail.com>
From: Neal Cardwell <ncardwell@google.com>
Date: Fri, 15 Jun 2012 22:42:25 -0400
> On Fri, Jun 15, 2012 at 6:00 PM, David Miller <davem@davemloft.net> wrote:
>> +++ b/include/net/ip6_route.h
>> +extern void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu,
>> + int oif, u32 mark);
> ...
>> +++ b/net/ipv6/route.c
>> +void ip6_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu,
>> + int oif, __be32 mark)
>
> The .h and .c files disagree on the types of mtu and mark for
> ip6_update_pmtu(). Looks like the mtu should be __be32 in both. I'm
> guessing mark should also be __be32 in both, though I'm not yet
> familiar with that area of the code.
>
> Otherwise looks great to me.
Thanks Neal, I've fixed it up as follows:
--------------------
[PATCH] ipv6: Fix types of ip6_update_pmtu().
The mtu should be a __be32, not the mark.
Reported-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
net/ipv6/route.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index c7ccc36..1c279fe 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1065,8 +1065,8 @@ static void ip6_rt_update_pmtu(struct dst_entry *dst, u32 mtu)
}
}
-void ip6_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu,
- int oif, __be32 mark)
+void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu,
+ int oif, u32 mark)
{
const struct ipv6hdr *iph = (struct ipv6hdr *) skb->data;
struct dst_entry *dst;
--
1.7.10.2
prev parent reply other threads:[~2012-06-16 3:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 22:00 [PATCH] ipv6: Handle PMTU in ICMP error handlers David Miller
2012-06-16 2:42 ` Neal Cardwell
2012-06-16 3:02 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120615.200216.1185728435617216812.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox