summaryrefslogtreecommitdiffstats
path: root/lib/netfilter/exp.c
diff options
context:
space:
mode:
authorRich Fought <Rich.Fought@watchguard.com>2012-10-08 23:49:06 (GMT)
committerRich Fought <Rich.Fought@watchguard.com>2012-10-08 23:49:06 (GMT)
commitf111efd894560a3f5d4393ff9aa59d1d87b78f6e (patch)
tree87ea1eb2c82bb0fbb54a3f335023c57083bf6447 /lib/netfilter/exp.c
parentc675bf048669e6387213018298787f4f9415401f (diff)
downloadlibnl-f111efd894560a3f5d4393ff9aa59d1d87b78f6e.zip
libnl-f111efd894560a3f5d4393ff9aa59d1d87b78f6e.tar.gz
libnl-f111efd894560a3f5d4393ff9aa59d1d87b78f6e.tar.bz2
Successful compilation of libnl-nf with expectation
Diffstat (limited to 'lib/netfilter/exp.c')
-rw-r--r--lib/netfilter/exp.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/lib/netfilter/exp.c b/lib/netfilter/exp.c
index 9e29c35..c6479f6 100644
--- a/lib/netfilter/exp.c
+++ b/lib/netfilter/exp.c
@@ -30,18 +30,6 @@
static struct nl_cache_ops nfnl_exp_ops;
-#if __BYTE_ORDER == __BIG_ENDIAN
-static uint64_t ntohll(uint64_t x)
-{
- return x;
-}
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-static uint64_t ntohll(uint64_t x)
-{
- return bswap_64(x);
-}
-#endif
-
static struct nla_policy exp_policy[CTA_EXPECT_MAX+1] = {
[CTA_EXPECT_MASTER] = { .type = NLA_NESTED },
[CTA_EXPECT_TUPLE] = { .type = NLA_NESTED },
@@ -407,6 +395,7 @@ static int nfnl_exp_build_message(const struct nfnl_exp *exp, int cmd, int flags
*result = msg;
return 0;
+nla_put_failure:
err_out:
nlmsg_free(msg);
return err;
@@ -519,9 +508,9 @@ static struct nl_cache_ops nfnl_exp_ops = {
.co_name = "netfilter/exp",
.co_hdrsize = NFNL_HDRLEN,
.co_msgtypes = {
- { NFNLMSG_CT_TYPE(IPCTNL_MSG_EXP_NEW), NL_ACT_NEW, "new" },
- { NFNLMSG_CT_TYPE(IPCTNL_MSG_EXP_GET), NL_ACT_GET, "get" },
- { NFNLMSG_CT_TYPE(IPCTNL_MSG_EXP_DELETE), NL_ACT_DEL, "del" },
+ { NFNLMSG_EXP_TYPE(IPCTNL_MSG_EXP_NEW), NL_ACT_NEW, "new" },
+ { NFNLMSG_EXP_TYPE(IPCTNL_MSG_EXP_GET), NL_ACT_GET, "get" },
+ { NFNLMSG_EXP_TYPE(IPCTNL_MSG_EXP_DELETE), NL_ACT_DEL, "del" },
END_OF_MSGTYPES_LIST,
},
.co_protocol = NETLINK_NETFILTER,