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