[LEDE-DEV] netifd: proto_add_host_dependency()
Hans Dedecker
hans.dedecker at telenet.be
Fri Nov 18 12:41:14 PST 2016
On Friday, 18 November 2016 12:33:25 CET Dan Lüdtke wrote:
> Hi everyone,
>
> I have a weird situation where proto_add_host_dependency() does not like
> IPv6 addresses. The WAN/WAN6 interface don't have global unicast addresses
> assigned, but my protocol script calls
>
> proto_add_host_dependency "${config}" "${ip}"
>
> with $ip containing a global unicast address. Interface setup fails. If I
> use IPv4 instead, interface setup succeeds.
>
> I a bit puzzled, because I think I have seen this working before.
> Testing on latest (OpenWRT) snapshot. Has netifd diverged in LEDE already?
OpenWRT uses an older netifd version then Lede but afaik there has been no
changes in the hostdependency logic
In the setups I use with IPv6 and proto_add_host_dependency I don't experience
any issues.
Check the IPv6 routes present in netifd as the proto_add_host_dependcy
requires the IPv6 address specified as argument being reachable by an IPv6
route
Hans
>
> Source:
> https://github.com/openwrt/packages/blob/d1c890896c0cae4516a222a0adcf01d91f
> 8d0503/net/wireguard/files/wireguard.sh#L87
>
> Any ideas?
>
> Dan
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
More information about the Lede-dev
mailing list