summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorosdl.net!shemminger <osdl.net!shemminger>2004-12-07 21:48:29 +0000
committerosdl.net!shemminger <osdl.net!shemminger>2004-12-07 21:48:29 +0000
commit50772dc51ac02239958e1ebcdb21277fcdf133a7 (patch)
tree046815d1c53ba3eb084f33b70a0de978ec487285 /include
parent7c8fdcd3bebf345ea56725c620acddb95334004a (diff)
Add ip rule flush capabilty and fix all the prototype changes
because of that code rewrites the nlmsghdr. (Logical change 1.106)
Diffstat (limited to 'include')
-rw-r--r--include/libnetlink.h3
-rw-r--r--include/ll_map.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/libnetlink.h b/include/libnetlink.h
index 3390d8b8..08be752e 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -20,7 +20,8 @@ extern void rtnl_close(struct rtnl_handle *rth);
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 238a7287..3bff5e94 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);