login
Header Space

 
 

Re: [GIT PULL net-2.6.26] [IPV6] MROUTE: Support multicast routing.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <roszenrami@...>, <davem@...>
Cc: <netdev@...>, <yoshfuji@...>
Date: Saturday, April 5, 2008 - 9:46 am

Hello.

In article <b25312890804050348w24bcba83y7391c89b1a9b25bc@mail.gmail.com> (at Sat, 5 Apr 2008 13:48:30 +0300), "Rami Rosen" <roszenrami@gmail.com> says:

:
:

Good point, thanks.

I've pushed the following fix into the tree:
	git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-dev.git net-2.6.26-mroute-20080405
on top of current net-2.6.26 tree.

Regards,

--yoshfuji
---------------
Subject: [IPV6] MROUTE: Use skb_tail_pointer(skb) instead of skb->tail.

This bug resulted in compilation error on 64bit machines.
Pointed out by Rami Rosen <roszenrami@gmail.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
---
 net/ipv6/ip6mr.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 2b70774..da673ef 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -733,7 +733,7 @@ static void ip6mr_cache_resolve(struct mfc6_cache *uc, struct mfc6_cache *c)
 			struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr));
 
 			if (ip6mr_fill_mroute(skb, c, NLMSG_DATA(nlh)) > 0) {
-				nlh->nlmsg_len = skb->tail - (u8 *)nlh;
+				nlh->nlmsg_len = skb_tail_pointer(skb) - (u8 *)nlh;
 			} else {
 				nlh->nlmsg_type = NLMSG_ERROR;
 				nlh->nlmsg_len = NLMSG_LENGTH(sizeof(struct nlmsgerr));
@@ -1562,7 +1562,7 @@ ip6mr_fill_mroute(struct sk_buff *skb, struct mfc6_cache *c, struct rtmsg *rtm)
 	int ct;
 	struct rtnexthop *nhp;
 	struct net_device *dev = vif6_table[c->mf6c_parent].dev;
-	u8 *b = skb->tail;
+	u8 *b = skb_tail_pointer(skb);
 	struct rtattr *mp_head;
 
 	if (dev)
@@ -1582,7 +1582,7 @@ ip6mr_fill_mroute(struct sk_buff *skb, struct mfc6_cache *c, struct rtmsg *rtm)
 		}
 	}
 	mp_head->rta_type = RTA_MULTIPATH;
-	mp_head->rta_len = skb->tail - (u8 *)mp_head;
+	mp_head->rta_len = skb_tail_pointer(skb) - (u8 *)mp_head;
 	rtm->rtm_type = RTN_MULTICAST;
 	return 1;
 
-- 
1.4.4.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL net-2.6.26] [IPV6] MROUTE: Support multicast routi..., YOSHIFUJI Hideaki / , (Wed Apr 2, 10:43 pm)
Re: [GIT PULL net-2.6.26] [IPV6] MROUTE: Support multicast r..., YOSHIFUJI Hideaki / , (Sat Apr 5, 9:46 am)
Re: [GIT PULL net-2.6.26] [IPV6] MROUTE: Support multicast r..., YOSHIFUJI Hideaki / , (Thu Apr 3, 2:23 am)
Re: [GIT PULL net-2.6.26] [IPV6] MROUTE: Support multicast r..., YOSHIFUJI Hideaki / , (Thu Apr 3, 3:31 am)
Re: [GIT PULL net-2.6.26] [IPV6] MROUTE: Support multicast r..., YOSHIFUJI Hideaki / , (Mon Apr 7, 10:37 am)
speck-geostationary