All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ip6mr: fix rtm_family of rtnl msg
@ 2012-12-04 11:01 Nicolas Dichtel
  2012-12-04 18:27 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Dichtel @ 2012-12-04 11:01 UTC (permalink / raw)
  To: netdev; +Cc: davem, kaber, Nicolas Dichtel

We talk about IPv6, hence the family is RTNL_FAMILY_IP6MR!
rtnl_register() is already called with RTNL_FAMILY_IP6MR.

The bug is here since the beginning of this function (commit 5b285cac3570).

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 net/ipv6/ip6mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index f7c7c63..940aa52 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -2212,7 +2212,7 @@ static int ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb,
 		return -EMSGSIZE;
 
 	rtm = nlmsg_data(nlh);
-	rtm->rtm_family   = RTNL_FAMILY_IPMR;
+	rtm->rtm_family   = RTNL_FAMILY_IP6MR;
 	rtm->rtm_dst_len  = 128;
 	rtm->rtm_src_len  = 128;
 	rtm->rtm_tos      = 0;
-- 
1.8.0.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ip6mr: fix rtm_family of rtnl msg
  2012-12-04 11:01 [PATCH] ip6mr: fix rtm_family of rtnl msg Nicolas Dichtel
@ 2012-12-04 18:27 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-12-04 18:27 UTC (permalink / raw)
  To: nicolas.dichtel; +Cc: netdev, kaber

From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Tue,  4 Dec 2012 12:01:49 +0100

> We talk about IPv6, hence the family is RTNL_FAMILY_IP6MR!
> rtnl_register() is already called with RTNL_FAMILY_IP6MR.
> 
> The bug is here since the beginning of this function (commit 5b285cac3570).
> 
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-04 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-04 11:01 [PATCH] ip6mr: fix rtm_family of rtnl msg Nicolas Dichtel
2012-12-04 18:27 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.