]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libipt_[SD]NAT: flag up module name on error
authorJan Engelhardt <jengelh@medozas.de>
Thu, 12 May 2011 22:11:00 +0000 (00:11 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 13 May 2011 00:00:01 +0000 (02:00 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libipt_DNAT.c
extensions/libipt_SNAT.c

index 6a46f109ebe05b2aaef4a722a05c0011dbac68c9..8c4c9c25bfab69c2ec49674d5568436c6d6a0550 100644 (file)
@@ -169,7 +169,7 @@ static void DNAT_parse(struct xt_option_call *cb)
                                get_kernel_version();
                        if (kernel_version > LINUX_VERSION(2, 6, 10))
                                xtables_error(PARAMETER_PROBLEM,
-                                          "Multiple --to-destination not supported");
+                                          "DNAT: Multiple --to-destination not supported");
                }
                *cb->target = parse_to(cb->arg, portok, info);
                /* WTF do we need this for?? */
index 9156a7b7f48544fe7e77954337e76fae58474c3e..369104173029059de3b9649e755f5c625e4c1151 100644 (file)
@@ -169,7 +169,7 @@ static void SNAT_parse(struct xt_option_call *cb)
                                get_kernel_version();
                        if (kernel_version > LINUX_VERSION(2, 6, 10))
                                xtables_error(PARAMETER_PROBLEM,
-                                          "Multiple --to-source not supported");
+                                          "SNAT: Multiple --to-source not supported");
                }
                *cb->target = parse_to(cb->arg, portok, info);
                /* WTF do we need this for?? */