I've been testing some code and using ktrace to debug. The following error is occurring,
setsockopt -1 errno 22 Invalid argument
it is linked the following line of code.
int on = 1;
setsockopt(sockfd, IPPROTO_IPV6, IPV6_DSTOPTS, &on, sizeof(on));
sockfd is working fine as the rest...