Commit fab10fe3 authored by Yan Zheng's avatar Yan Zheng Committed by David S. Miller

[MCAST] ipv6: Fix address size in grec_size

Signed-Off-By: default avatarYan Zheng <yanzheng@21cn.com>
Acked-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: default avatarDavid L Stevens <dlstevens@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83fa3400
...@@ -1393,7 +1393,7 @@ static void mld_sendpack(struct sk_buff *skb) ...@@ -1393,7 +1393,7 @@ static void mld_sendpack(struct sk_buff *skb)
static int grec_size(struct ifmcaddr6 *pmc, int type, int gdel, int sdel) static int grec_size(struct ifmcaddr6 *pmc, int type, int gdel, int sdel)
{ {
return sizeof(struct mld2_grec) + 4*mld_scount(pmc,type,gdel,sdel); return sizeof(struct mld2_grec) + 16 * mld_scount(pmc,type,gdel,sdel);
} }
static struct sk_buff *add_grhead(struct sk_buff *skb, struct ifmcaddr6 *pmc, static struct sk_buff *add_grhead(struct sk_buff *skb, struct ifmcaddr6 *pmc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment