Convert the iptables match function (IPv6) to take a struct sock argument.