Commit 72b43d08 authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by David S. Miller

inet6: prevent network storms caused by linux IPv6 routers

Linux IPv6 forwards unicast packets, which are link layer multicasts...
The hole was present since day one. I was 100% this check is there, but it is not.

The problem shows itself, f.e. when Microsoft Network Load Balancer runs on a network.
This software resolves IPv6 unicast addresses to multicast MAC addresses.
Signed-off-by: default avatarAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 12252771
...@@ -401,6 +401,9 @@ int ip6_forward(struct sk_buff *skb) ...@@ -401,6 +401,9 @@ int ip6_forward(struct sk_buff *skb)
goto drop; goto drop;
} }
if (skb->pkt_type != PACKET_HOST)
goto drop;
skb_forward_csum(skb); skb_forward_csum(skb);
/* /*
......
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