summaryrefslogtreecommitdiffstats
path: root/src/conntrack.c
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-07-22 07:40:26 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org>2005-07-22 07:40:26 +0000
commit7ec2f918a384e62ca5b0a62e204d1fbe882718d7 (patch)
treeac05cbabe784e7e614a9b4b6c9bb8ab00b648b37 /src/conntrack.c
parent9ab85762233756f1e828f7c4c6007d25ac26f494 (diff)
major re-sync with current names/definitions in libctnetlink and kernel
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: