[socket-nif] setopt and getopt with level ipv6
[socket-nif] setopt and getopt with level ipv6

The level argument for IPv6 can be either SOL_IPV6 or
IPPROTO_IPV6, whichever is defined. But it was hard-
coded to SOL_IPV6, which is not defined on FreeBSD.

OTP-14831

isvilen/otp,erlang/otp,aboroska/otp,dgud/otp,dgud/otp,kvakvs/otp,erlang/otp,dumbbell/otp,potatosalad/otp,rlipscombe/otp,potatosalad/otp,ferd/otp,bsmr-erlang/otp,dgud/otp,electricimp/otp,legoscia/otp,g-andrade/otp,bjorng/otp,emacsmirror/erlang,erlang/otp,rlipscombe/otp,potatosalad/otp,mikpe/otp,lrascao/otp,emacsmirror/erlang,getong/otp,aboroska/otp,dumbbell/otp,vinoski/otp,rlipscombe/otp,RoadRunnr/otp,rlipscombe/otp,ferd/otp,aboroska/otp,lrascao/otp,rlipscombe/otp,mikpe/otp,getong/otp,lrascao/otp,g-andrade/otp,lrascao/otp,vladdu/otp,rlipscombe/otp,jj1bdx/otp,potatosalad/otp,ferd/otp,dumbbell/otp,ferd/otp,emacsmirror/erlang,RoadRunnr/otp,dgud/otp,ferd/otp,kvakvs/otp,potatosalad/otp,dumbbell/otp,aboroska/otp,lrascao/otp,bsmr-erlang/otp,isvilen/otp,getong/otp,rlipscombe/otp,rlipscombe/otp,kvakvs/otp,electricimp/otp,uabboli/otp,g-andrade/otp,potatosalad/otp,uabboli/otp,legoscia/otp,dgud/otp,bsmr-erlang/otp,RoadRunnr/otp,emacsmirror/erlang,isvilen/otp,mikpe/otp,kvakvs/otp,vinoski/otp,jj1bdx/otp,getong/otp,emacsmirror/erlang,uabboli/otp,g-andrade/otp,legoscia/otp,bjorng/otp,vinoski/otp,emacsmirror/erlang,vladdu/otp,kvakvs/otp,erlang/otp,uabboli/otp,emacsmirror/erlang,uabboli/otp,erlang/otp,vinoski/otp,bjorng/otp,jj1bdx/otp,bjorng/otp,dumbbell/otp,vladdu/otp,getong/otp,vinoski/otp,isvilen/otp,jj1bdx/otp,bsmr-erlang/otp,mikpe/otp,electricimp/otp,g-andrade/otp,dumbbell/otp,ferd/otp,uabboli/otp,bsmr-erlang/otp,kvakvs/otp,bjorng/otp,vladdu/otp,potatosalad/otp,ferd/otp,vinoski/otp,dgud/otp,legoscia/otp,erlang/otp,legoscia/otp,dgud/otp,aboroska/otp,RoadRunnr/otp,aboroska/otp,potatosalad/otp,rlipscombe/otp,dumbbell/otp,g-andrade/otp,RoadRunnr/otp,electricimp/otp,dumbbell/otp,rlipscombe/otp,vladdu/otp,bjorng/otp,vladdu/otp,RoadRunnr/otp,dumbbell/otp,g-andrade/otp,RoadRunnr/otp,aboroska/otp,electricimp/otp,legoscia/otp,bsmr-erlang/otp,jj1bdx/otp,getong/otp,dumbbell/otp,vinoski/otp,aboroska/otp,jj1bdx/otp,electricimp/otp,mikpe/otp,mikpe/otp,bsmr-erlang/otp,jj1bdx/otp,electricimp/otp,bjorng/otp,bjorng/otp,kvakvs/otp,legoscia/otp,ferd/otp,lrascao/otp,g-andrade/otp,uabboli/otp,bsmr-erlang/otp,jj1bdx/otp,mikpe/otp,emacsmirror/erlang,getong/otp,lrascao/otp,erlang/otp,emacsmirror/erlang,emacsmirror/erlang,vinoski/otp,potatosalad/otp,getong/otp,aboroska/otp,RoadRunnr/otp,erlang/otp,lrascao/otp,mikpe/otp,isvilen/otp,isvilen/otp,dgud/otp,dgud/otp,electricimp/otp,uabboli/otp,vladdu/otp,kvakvs/otp,erlang/otp,jj1bdx/otp,getong/otp,jj1bdx/otp,legoscia/otp,legoscia/otp,g-andrade/otp,bjorng/otp,bjorng/otp,getong/otp,lrascao/otp,mikpe/otp,dgud/otp,ferd/otp,vladdu/otp,vladdu/otp,vinoski/otp,electricimp/otp,erlang/otp,potatosalad/otp,RoadRunnr/otp,vinoski/otp,isvilen/otp,isvilen/otp,mikpe/otp,isvilen/otp,kvakvs/otp,bsmr-erlang/otp,isvilen/otp,g-andrade/otp,uabboli/otp