Thread (3 messages) flat view 3 messages, 2 authors, 2012-06-16

Re: [PATCH] ipv6: Handle PMTU in ICMP error handlers.

From: David Miller <davem@davemloft.net>
Date: 2012-06-16 03:02:20
Subsystem: networking [general], networking [ipv4/ipv6], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, David Ahern, Ido Schimmel, Linus Torvalds

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 [off-list ref] wrote:
quoted
+++ b/include/net/ip6_route.h
+extern void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu,
+                           int oif, u32 mark);
...
quoted
+++ 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help