Add ip rule flush capabilty and fix all the prototype changes
because of that code rewrites the nlmsghdr.
(Logical change 1.106)
diff --git a/include/libnetlink.h b/include/libnetlink.h
index 3390d8b..08be752 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -20,7 +20,8 @@
extern int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type);
extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len);
-typedef int (*rtnl_filter_t)(const struct sockaddr_nl *, const struct nlmsghdr *n, void *);
+typedef int (*rtnl_filter_t)(const struct sockaddr_nl *,
+ struct nlmsghdr *n, void *);
extern int rtnl_dump_filter(struct rtnl_handle *rth, rtnl_filter_t filter,
void *arg1,
rtnl_filter_t junk,
diff --git a/include/ll_map.h b/include/ll_map.h
index 238a728..3bff5e9 100644
--- a/include/ll_map.h
+++ b/include/ll_map.h
@@ -1,8 +1,8 @@
#ifndef __LL_MAP_H__
#define __LL_MAP_H__ 1
-extern int ll_remember_index(const struct sockaddr_nl *who, const struct nlmsghdr *n,
- void *arg);
+extern int ll_remember_index(const struct sockaddr_nl *who,
+ struct nlmsghdr *n, void *arg);
extern int ll_init_map(struct rtnl_handle *rth);
extern int ll_name_to_index(const char *name);
extern const char *ll_index_to_name(int idx);