on ipsec4_getpolicybysock, determine packet IP version by ip->ip_v, not from socket address family.  it will let us properly handle IPv4 mapped address case.  please test >sakane
on ipsec4_getpolicybysock, determine packet IP version by ip->ip_v, not from
socket address family.  it will let us properly handle IPv4 mapped address
case.  please test >sakane

MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame