- local ip6assign = vif.ip6assign or 0
- if ip6assign ~= 0 then
- if ip6assign_c == 0 then
- ip6assign_addr = uprefix.."::1"
- else
- ip6assign_addr = uprefix..":"..ip6assign_c.."::1"
+ local name = vif['.name']
+ local net = ntm:get_network(name)
+ local device = net and net:get_interface()
+ local locip = ipc.IPv6(v.localIP)
+ for _, a in ipairs(device:ip6addrs()) do
+ if not a:is6linklocal() then
+ if a:host() == locip:host() then
+ interface = name
+ neihgt = neightbl.get(device.ifname) or {}
+ end