diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-09-17 13:36:16 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2007-09-17 13:36:16 +0200 |
commit | 3040a1d6254465bed9e44e4d1bf279c2c50cd16a (patch) | |
tree | 29f557cdd57a8b3d6a1dd6accbc15845a44f3195 /lib/route/neigh.c | |
parent | 3d8efba91778b65a40d50ca0b6ba91d4071564c5 (diff) | |
download | libnl-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/route/neigh.c')
-rw-r--r-- | lib/route/neigh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/route/neigh.c b/lib/route/neigh.c index aac4718..5d6bf7a 100644 --- a/lib/route/neigh.c +++ b/lib/route/neigh.c @@ -252,11 +252,10 @@ static struct nla_policy neigh_policy[NDA_MAX+1] = { }; static int neigh_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who, - struct nlmsghdr *n, void *arg) + struct nlmsghdr *n, struct nl_parser_param *pp) { struct rtnl_neigh *neigh; struct nlattr *tb[NDA_MAX + 1]; - struct nl_parser_param *pp = arg; struct ndmsg *nm; int err; |