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