in6_validate_ifra() requires ifra_addr to be a struct sockaddr_in6,
but it accepts an AF_INET6 ifra_dstaddr with any sin6_len, and
in6_notify_ifa() stores that address in ia_dstaddr as given.
Reject an AF_INET6 destination address whose sin6_len is not
sizeof(struct sockaddr_in6) with EINVAL, as in_aifaddr() does for
IPv4. ifconfig(8), the netlink address handler and the kernel's own
callers already pass the right length.
Add tests/sys/netinet6/in6_control, whose cases run in a VNET jail:
- aifaddr_dstaddr: SIOCAIFADDR_IN6 stores a valid destination address, and getifaddrs(3) reports it;
- aifaddr_dstaddr_badlen: SIOCAIFADDR_IN6 rejects a destination address with sin6_len 255.
aifaddr_dstaddr_badlen fails without the fix.
MFC after: 2 weeks
Co-Authored-By: Claude Opus 5.5