Quit the teardown function in case the file 464-$cfg-anycast is not
present as it means no clean up of ip rules is required.
It fixes error traces like "cat: can't open '/tmp/464-wan6_4-anycast':
No such file or directory" and "Error: inet6 prefix is expected rather
than "lookup"."
At the same time remove the unused variable anycast_active.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Integrate ip rule support for the prelocal routing table lookup in the 464xlat
proto shell handler as netifd does not install anymore an ip rule for the prelocal
routing table.
The prelocal routing table ip rule needs to be installed before the local routing
table ip rule so the 464xlat traffic with as destination the IPv6 anycast address
is routed to the nat46 module otherwise the traffic will be dropped in the IPv6
local table.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Remove unnecessary 464xlat wan forwarding firewall rule with as
outgoing interface the 464xlat interface and as destination the
local IPv6 464xlat address as it's never hit.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>