On Sun, Aug 28, 2016 at 04:50:46PM +0800, Liping Zhang wrote: > From: Liping Zhang <liping.zhang@xxxxxxxxxxxxxx> > > When I want to translate SNAT target to nft rule, an error message > was printed out: > # iptables-translate -A POSTROUTING -j SNAT --to-source 1.1.1.1 > iptables-translate v1.6.0: OOM > > Because ipt_natinfo{} started with a xt_entry_target{}, so when we > get the ipt_natinfo pointer, we should use the target itself, > not its data pointer. Yes, it is a little tricky and it's different > with other targets. Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html