Commit 1d2bb302 authored by Angga's avatar Angga Committed by Luis Henriques

ipv6: Make MLD packets to only be processed locally

commit 4c938d22 upstream.

Before commit daad1512 ("ipv6: Make ipv6_is_mld() inline and use it
from ip6_mc_input().") MLD packets were only processed locally. After the
change, a copy of MLD packet goes through ip6_mr_input, causing
MRT6MSG_NOCACHE message to be generated to user space.

Make MLD packet only processed locally.

Fixes: daad1512 ("ipv6: Make ipv6_is_mld() inline and use it from ip6_mc_input().")
Signed-off-by: default avatarHermin Anggawijaya <hermin.anggawijaya@alliedtelesis.co.nz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 26f98b66
...@@ -329,10 +329,10 @@ int ip6_mc_input(struct sk_buff *skb) ...@@ -329,10 +329,10 @@ int ip6_mc_input(struct sk_buff *skb)
if (offset < 0) if (offset < 0)
goto out; goto out;
if (!ipv6_is_mld(skb, nexthdr, offset)) if (ipv6_is_mld(skb, nexthdr, offset))
goto out;
deliver = true; deliver = true;
goto out;
} }
/* unknown RA - process it normally */ /* unknown RA - process it normally */
} }
......
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