]> git.ipfire.org Git - thirdparty/iptables.git/commit
libipt_[SD]NAT: avoid false error about multiple destinations specified
authorJan Engelhardt <jengelh@medozas.de>
Thu, 12 May 2011 22:15:45 +0000 (00:15 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 13 May 2011 00:00:01 +0000 (02:00 +0200)
commitf25b2355e889290879c8cecad3dd24ec0c384fb8
treea48977f15799809a3d22c9485c2cf0da6eb35ff5
parente82d031af24c8155357c6f2d2b2e236bd6cf67e4
libipt_[SD]NAT: avoid false error about multiple destinations specified

iptables-restore v1.4.10: DNAT: Multiple --to-destination not supported

xtables_option_parse sets cb->xflags already, so that it cannot be
directly used to test whether an option is being used for the second
time. Thus use a private option/flag (X_TO_DEST/SRC) that is not under
the control of xtables_option_parse.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libipt_DNAT.c
extensions/libipt_SNAT.c