diff options
Diffstat (limited to 'networking/libiproute/libnetlink.c')
-rw-r--r-- | networking/libiproute/libnetlink.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c index 4511d36fa..6b599d91c 100644 --- a/networking/libiproute/libnetlink.c +++ b/networking/libiproute/libnetlink.c | |||
@@ -17,12 +17,12 @@ | |||
17 | #include "libbb.h" | 17 | #include "libbb.h" |
18 | #include "libnetlink.h" | 18 | #include "libnetlink.h" |
19 | 19 | ||
20 | void rtnl_close(struct rtnl_handle *rth) | 20 | void FAST_FUNC rtnl_close(struct rtnl_handle *rth) |
21 | { | 21 | { |
22 | close(rth->fd); | 22 | close(rth->fd); |
23 | } | 23 | } |
24 | 24 | ||
25 | int xrtnl_open(struct rtnl_handle *rth/*, unsigned subscriptions*/) | 25 | int FAST_FUNC xrtnl_open(struct rtnl_handle *rth/*, unsigned subscriptions*/) |
26 | { | 26 | { |
27 | socklen_t addr_len; | 27 | socklen_t addr_len; |
28 | 28 | ||
@@ -46,7 +46,7 @@ int xrtnl_open(struct rtnl_handle *rth/*, unsigned subscriptions*/) | |||
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
48 | 48 | ||
49 | int xrtnl_wilddump_request(struct rtnl_handle *rth, int family, int type) | 49 | int FAST_FUNC xrtnl_wilddump_request(struct rtnl_handle *rth, int family, int type) |
50 | { | 50 | { |
51 | struct { | 51 | struct { |
52 | struct nlmsghdr nlh; | 52 | struct nlmsghdr nlh; |
@@ -68,7 +68,7 @@ int xrtnl_wilddump_request(struct rtnl_handle *rth, int family, int type) | |||
68 | (struct sockaddr*)&nladdr, sizeof(nladdr)); | 68 | (struct sockaddr*)&nladdr, sizeof(nladdr)); |
69 | } | 69 | } |
70 | 70 | ||
71 | int rtnl_send(struct rtnl_handle *rth, char *buf, int len) | 71 | int FAST_FUNC rtnl_send(struct rtnl_handle *rth, char *buf, int len) |
72 | { | 72 | { |
73 | struct sockaddr_nl nladdr; | 73 | struct sockaddr_nl nladdr; |
74 | 74 | ||
@@ -78,7 +78,7 @@ int rtnl_send(struct rtnl_handle *rth, char *buf, int len) | |||
78 | return xsendto(rth->fd, buf, len, (struct sockaddr*)&nladdr, sizeof(nladdr)); | 78 | return xsendto(rth->fd, buf, len, (struct sockaddr*)&nladdr, sizeof(nladdr)); |
79 | } | 79 | } |
80 | 80 | ||
81 | int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) | 81 | int FAST_FUNC rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) |
82 | { | 82 | { |
83 | struct nlmsghdr nlh; | 83 | struct nlmsghdr nlh; |
84 | struct sockaddr_nl nladdr; | 84 | struct sockaddr_nl nladdr; |
@@ -194,7 +194,7 @@ static int rtnl_dump_filter(struct rtnl_handle *rth, | |||
194 | return retval; | 194 | return retval; |
195 | } | 195 | } |
196 | 196 | ||
197 | int xrtnl_dump_filter(struct rtnl_handle *rth, | 197 | int FAST_FUNC xrtnl_dump_filter(struct rtnl_handle *rth, |
198 | int (*filter)(const struct sockaddr_nl *, struct nlmsghdr *, void *), | 198 | int (*filter)(const struct sockaddr_nl *, struct nlmsghdr *, void *), |
199 | void *arg1) | 199 | void *arg1) |
200 | { | 200 | { |
@@ -204,7 +204,7 @@ int xrtnl_dump_filter(struct rtnl_handle *rth, | |||
204 | return ret; | 204 | return ret; |
205 | } | 205 | } |
206 | 206 | ||
207 | int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, | 207 | int FAST_FUNC 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 *, void *), | 210 | int (*junk)(struct sockaddr_nl *, struct nlmsghdr *, void *), |
@@ -332,7 +332,7 @@ int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, | |||
332 | return retval; | 332 | return retval; |
333 | } | 333 | } |
334 | 334 | ||
335 | int addattr32(struct nlmsghdr *n, int maxlen, int type, uint32_t data) | 335 | int FAST_FUNC addattr32(struct nlmsghdr *n, int maxlen, int type, uint32_t data) |
336 | { | 336 | { |
337 | int len = RTA_LENGTH(4); | 337 | int len = RTA_LENGTH(4); |
338 | struct rtattr *rta; | 338 | struct rtattr *rta; |
@@ -346,7 +346,7 @@ int addattr32(struct nlmsghdr *n, int maxlen, int type, uint32_t data) | |||
346 | return 0; | 346 | return 0; |
347 | } | 347 | } |
348 | 348 | ||
349 | int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen) | 349 | int FAST_FUNC addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen) |
350 | { | 350 | { |
351 | int len = RTA_LENGTH(alen); | 351 | int len = RTA_LENGTH(alen); |
352 | struct rtattr *rta; | 352 | struct rtattr *rta; |
@@ -361,7 +361,7 @@ int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen) | |||
361 | return 0; | 361 | return 0; |
362 | } | 362 | } |
363 | 363 | ||
364 | int rta_addattr32(struct rtattr *rta, int maxlen, int type, uint32_t data) | 364 | int FAST_FUNC rta_addattr32(struct rtattr *rta, int maxlen, int type, uint32_t data) |
365 | { | 365 | { |
366 | int len = RTA_LENGTH(4); | 366 | int len = RTA_LENGTH(4); |
367 | struct rtattr *subrta; | 367 | struct rtattr *subrta; |
@@ -377,7 +377,7 @@ int rta_addattr32(struct rtattr *rta, int maxlen, int type, uint32_t data) | |||
377 | return 0; | 377 | return 0; |
378 | } | 378 | } |
379 | 379 | ||
380 | int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen) | 380 | int FAST_FUNC rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen) |
381 | { | 381 | { |
382 | struct rtattr *subrta; | 382 | struct rtattr *subrta; |
383 | int len = RTA_LENGTH(alen); | 383 | int len = RTA_LENGTH(alen); |
@@ -394,7 +394,7 @@ int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen | |||
394 | } | 394 | } |
395 | 395 | ||
396 | 396 | ||
397 | int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) | 397 | int FAST_FUNC parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) |
398 | { | 398 | { |
399 | while (RTA_OK(rta, len)) { | 399 | while (RTA_OK(rta, len)) { |
400 | if (rta->rta_type <= max) { | 400 | if (rta->rta_type <= max) { |