summaryrefslogtreecommitdiff
path: root/lib/netfilter
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-09-17 13:36:16 +0200
committerThomas Graf <tgraf@suug.ch>2007-09-17 13:36:16 +0200
commit3040a1d6254465bed9e44e4d1bf279c2c50cd16a (patch)
tree29f557cdd57a8b3d6a1dd6accbc15845a44f3195 /lib/netfilter
parent3d8efba91778b65a40d50ca0b6ba91d4071564c5 (diff)
downloadlibnl-3040a1d6254465bed9e44e4d1bf279c2c50cd16a.tar.gz
Export interface to define caches
This interface was internal so far which required all code defining caches to be compiled with the sources available. In order to simplify the interface, the co_msg_parser prototype was changed to take the struct nl_parser_param directly instead of a void *. It used to be void * because the co_msg_parser was directly passed as the NL_CB_VALID callback function.
Diffstat (limited to 'lib/netfilter')
-rw-r--r--lib/netfilter/ct.c3
-rw-r--r--lib/netfilter/log.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/netfilter/ct.c b/lib/netfilter/ct.c
index 24b67fd..195c98f 100644
--- a/lib/netfilter/ct.c
+++ b/lib/netfilter/ct.c
@@ -353,9 +353,8 @@ errout:
}
static int ct_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
- struct nlmsghdr *nlh, void *arg)
+ struct nlmsghdr *nlh, struct nl_parser_param *pp)
{
- struct nl_parser_param *pp = arg;
struct nfnl_ct *ct;
int err;
diff --git a/lib/netfilter/log.c b/lib/netfilter/log.c
index ccc90a8..d8b3521 100644
--- a/lib/netfilter/log.c
+++ b/lib/netfilter/log.c
@@ -161,9 +161,8 @@ errout:
}
static int log_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
- struct nlmsghdr *nlh, void *arg)
+ struct nlmsghdr *nlh, struct nl_parser_param *pp)
{
- struct nl_parser_param *pp = arg;
struct nfnl_log *log;
int err;