On Mon, 18 Nov 2019 19:02:13 +0100, Alexander Bluhm wrote:

> The get functions like SIOCGIFAFLAG_IN6 did not have a length check.
> There the incoming address is used to find the correct interface
> address for the requested information.  This is what dhcpcd uses.
>
> For the inet6 netmask the sin6_len is used to figure out which part
> of the mask provided by userland is valid.
>
> The diff below sets the address length for the address that dhcpcd
> provides without length.

That looks like the best solution to me.  OK millert@

 - todd

Reply via email to