]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipv6: Preserve link scope traffic original oif
authorAlin Nastac <alin.nastac@gmail.com>
Wed, 21 Nov 2018 13:00:30 +0000 (14:00 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Nov 2018 23:12:20 +0000 (00:12 +0100)
commit56e406b99ee7ed590e1fc09cb26c25673188d3f8
treec5e1d0164c2919c9b82ffc502195ef25b64a261d
parent5a87fc6f3377c1dfec5cf60ec2e84222ee42d311
netfilter: ipv6: Preserve link scope traffic original oif

When ip6_route_me_harder is invoked, it resets outgoing interface of:
  - link-local scoped packets sent by neighbor discovery
  - multicast packets sent by MLD host
  - multicast packets send by MLD proxy daemon that sets outgoing
    interface through IPV6_PKTINFO ipi6_ifindex

Link-local and multicast packets must keep their original oif after
ip6_route_me_harder is called.

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter.c