summaryrefslogtreecommitdiffstats
path: root/src/conntrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conntrack.c')
-rw-r--r--src/conntrack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index a6efd8b..2a8fa87 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -455,7 +455,7 @@ parse_parameter(const char *arg, unsigned int *status, int parse_type)
}
static void
-add_command(int *cmd, const int newcmd, const int othercmds)
+add_command(unsigned int *cmd, const int newcmd, const int othercmds)
{
if (*cmd & (~othercmds))
exit_error(PARAMETER_PROBLEM, "Invalid commands combination\n");
@@ -884,7 +884,7 @@ int main(int argc, char *argv[])
timeout);
else if (options & CT_OPT_REPL)
res = create_expectation(&reply,
- CTA_TUPLE_RPLY,
+ CTA_TUPLE_REPLY,
&exptuple,
&mask,
timeout);
@@ -909,7 +909,7 @@ int main(int argc, char *argv[])
res = delete_conntrack(&orig, CTA_TUPLE_ORIG,
CTNL_DIR_ORIGINAL);
else if (options & CT_OPT_REPL)
- res = delete_conntrack(&reply, CTA_TUPLE_RPLY,
+ res = delete_conntrack(&reply, CTA_TUPLE_REPLY,
CTNL_DIR_REPLY);
break;
@@ -917,21 +917,21 @@ int main(int argc, char *argv[])
if (options & CT_OPT_ORIG)
res = delete_expectation(&orig, CTA_TUPLE_ORIG);
else if (options & CT_OPT_REPL)
- res = delete_expectation(&reply, CTA_TUPLE_RPLY);
+ res = delete_expectation(&reply, CTA_TUPLE_REPLY);
break;
case CT_GET:
if (options & CT_OPT_ORIG)
res = get_conntrack(&orig, CTA_TUPLE_ORIG, id);
else if (options & CT_OPT_REPL)
- res = get_conntrack(&reply, CTA_TUPLE_RPLY, id);
+ res = get_conntrack(&reply, CTA_TUPLE_REPLY, id);
break;
case EXP_GET:
if (options & CT_OPT_ORIG)
res = get_expect(&orig, CTA_TUPLE_ORIG);
else if (options & CT_OPT_REPL)
- res = get_expect(&reply, CTA_TUPLE_RPLY);
+ res = get_expect(&reply, CTA_TUPLE_REPLY);
break;
case CT_FLUSH: