From: Yan Zheng Date: Wed, 5 Oct 2005 19:08:13 +0000 (-0700) Subject: [MCAST] ipv6: Fix address size in grec_size X-Git-Tag: v2.6.16.28-rc1~3483^2~4^2~4^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fab10fe37ad8dc4388fc444c89ef5aefe906354f;p=karo-tx-linux.git [MCAST] ipv6: Fix address size in grec_size Signed-Off-By: Yan Zheng Acked-by: YOSHIFUJI Hideaki Acked-by: David L Stevens Signed-off-by: David S. Miller --- diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 519899fb11d5..39a96c768102 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -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) { - 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,