aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/libiproute/ipaddress.c4
-rw-r--r--networking/libiproute/iproute.c2
-rw-r--r--networking/libiproute/iprule.c2
-rw-r--r--networking/libiproute/libnetlink.c6
-rw-r--r--networking/libiproute/libnetlink.h2
-rw-r--r--networking/libiproute/ll_map.c2
-rw-r--r--networking/libiproute/ll_map.h2
7 files changed, 10 insertions, 10 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index faa3f2d06..7a948a19d 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -196,7 +196,7 @@ static int flush_update(void)
196 return 0; 196 return 0;
197} 197}
198 198
199static int print_addrinfo(struct sockaddr_nl *who ATTRIBUTE_UNUSED, 199static int print_addrinfo(const struct sockaddr_nl *who ATTRIBUTE_UNUSED,
200 struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) 200 struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED)
201{ 201{
202 struct ifaddrmsg *ifa = NLMSG_DATA(n); 202 struct ifaddrmsg *ifa = NLMSG_DATA(n);
@@ -380,7 +380,7 @@ static int print_selected_addrinfo(int ifindex, struct nlmsg_list *ainfo)
380} 380}
381 381
382 382
383static int store_nlmsg(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) 383static int store_nlmsg(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
384{ 384{
385 struct nlmsg_list **linfo = (struct nlmsg_list**)arg; 385 struct nlmsg_list **linfo = (struct nlmsg_list**)arg;
386 struct nlmsg_list *h; 386 struct nlmsg_list *h;
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 59cbf8073..6977a0956 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -78,7 +78,7 @@ static unsigned get_hz(void)
78 return hz_internal; 78 return hz_internal;
79} 79}
80 80
81static int print_route(struct sockaddr_nl *who ATTRIBUTE_UNUSED, 81static int print_route(const struct sockaddr_nl *who ATTRIBUTE_UNUSED,
82 struct nlmsghdr *n, void *arg) 82 struct nlmsghdr *n, void *arg)
83{ 83{
84 FILE *fp = (FILE*)arg; 84 FILE *fp = (FILE*)arg;
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c
index f62429a7c..2ee7701f8 100644
--- a/networking/libiproute/iprule.c
+++ b/networking/libiproute/iprule.c
@@ -40,7 +40,7 @@ static void usage(void)
40} 40}
41*/ 41*/
42 42
43static int print_rule(struct sockaddr_nl *who ATTRIBUTE_UNUSED, 43static int print_rule(const struct sockaddr_nl *who ATTRIBUTE_UNUSED,
44 struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) 44 struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED)
45{ 45{
46 struct rtmsg *r = NLMSG_DATA(n); 46 struct rtmsg *r = NLMSG_DATA(n);
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c
index 47a055ac0..4511d36fa 100644
--- a/networking/libiproute/libnetlink.c
+++ b/networking/libiproute/libnetlink.c
@@ -103,7 +103,7 @@ int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len)
103} 103}
104 104
105static int rtnl_dump_filter(struct rtnl_handle *rth, 105static int rtnl_dump_filter(struct rtnl_handle *rth,
106 int (*filter)(struct sockaddr_nl *, struct nlmsghdr *n, void *), 106 int (*filter)(const struct sockaddr_nl *, struct nlmsghdr *n, void *),
107 void *arg1/*, 107 void *arg1/*,
108 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *), 108 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *),
109 void *arg2*/) 109 void *arg2*/)
@@ -195,7 +195,7 @@ static int rtnl_dump_filter(struct rtnl_handle *rth,
195} 195}
196 196
197int xrtnl_dump_filter(struct rtnl_handle *rth, 197int xrtnl_dump_filter(struct rtnl_handle *rth,
198 int (*filter)(struct sockaddr_nl *, struct nlmsghdr *n, void *), 198 int (*filter)(const struct sockaddr_nl *, struct nlmsghdr *, void *),
199 void *arg1) 199 void *arg1)
200{ 200{
201 int ret = rtnl_dump_filter(rth, filter, arg1/*, NULL, NULL*/); 201 int ret = rtnl_dump_filter(rth, filter, arg1/*, NULL, NULL*/);
@@ -207,7 +207,7 @@ int xrtnl_dump_filter(struct rtnl_handle *rth,
207int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, 207int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n,
208 pid_t peer, unsigned groups, 208 pid_t peer, unsigned groups,
209 struct nlmsghdr *answer, 209 struct nlmsghdr *answer,
210 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *n, void *), 210 int (*junk)(struct sockaddr_nl *, struct nlmsghdr *, void *),
211 void *jarg) 211 void *jarg)
212{ 212{
213/* bbox doesn't use parameters no. 3, 4, 6, 7, they are stubbed out */ 213/* bbox doesn't use parameters no. 3, 4, 6, 7, they are stubbed out */
diff --git a/networking/libiproute/libnetlink.h b/networking/libiproute/libnetlink.h
index 7507c52e7..6c1a88129 100644
--- a/networking/libiproute/libnetlink.h
+++ b/networking/libiproute/libnetlink.h
@@ -27,7 +27,7 @@ extern void rtnl_close(struct rtnl_handle *rth);
27extern int xrtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type); 27extern int xrtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type);
28extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len); 28extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len);
29extern int xrtnl_dump_filter(struct rtnl_handle *rth, 29extern int xrtnl_dump_filter(struct rtnl_handle *rth,
30 int (*filter)(struct sockaddr_nl*, struct nlmsghdr *n, void*), 30 int (*filter)(const struct sockaddr_nl*, struct nlmsghdr *n, void*),
31 void *arg1); 31 void *arg1);
32 32
33/* bbox doesn't use parameters no. 3, 4, 6, 7, stub them out */ 33/* bbox doesn't use parameters no. 3, 4, 6, 7, stub them out */
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c
index 031b29a60..f9b697070 100644
--- a/networking/libiproute/ll_map.c
+++ b/networking/libiproute/ll_map.c
@@ -39,7 +39,7 @@ static struct idxmap *find_by_index(int idx)
39 return NULL; 39 return NULL;
40} 40}
41 41
42int ll_remember_index(struct sockaddr_nl *who ATTRIBUTE_UNUSED, 42int ll_remember_index(const struct sockaddr_nl *who ATTRIBUTE_UNUSED,
43 struct nlmsghdr *n, 43 struct nlmsghdr *n,
44 void *arg ATTRIBUTE_UNUSED) 44 void *arg ATTRIBUTE_UNUSED)
45{ 45{
diff --git a/networking/libiproute/ll_map.h b/networking/libiproute/ll_map.h
index c4257894c..6d64ac15a 100644
--- a/networking/libiproute/ll_map.h
+++ b/networking/libiproute/ll_map.h
@@ -6,7 +6,7 @@
6# pragma GCC visibility push(hidden) 6# pragma GCC visibility push(hidden)
7#endif 7#endif
8 8
9int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); 9int ll_remember_index(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
10int ll_init_map(struct rtnl_handle *rth); 10int ll_init_map(struct rtnl_handle *rth);
11int xll_name_to_index(const char *const name); 11int xll_name_to_index(const char *const name);
12const char *ll_index_to_name(int idx); 12const char *ll_index_to_name(int idx);