diff options
Diffstat (limited to 'networking/libiproute/libnetlink.c')
-rw-r--r-- | networking/libiproute/libnetlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/libiproute/libnetlink.c b/networking/libiproute/libnetlink.c index 7291ee2f1..c7533a4a7 100644 --- a/networking/libiproute/libnetlink.c +++ b/networking/libiproute/libnetlink.c | |||
@@ -55,6 +55,7 @@ int FAST_FUNC xrtnl_wilddump_request(struct rtnl_handle *rth, int family, int ty | |||
55 | return rtnl_send(rth, (void*)&req, sizeof(req)); | 55 | return rtnl_send(rth, (void*)&req, sizeof(req)); |
56 | } | 56 | } |
57 | 57 | ||
58 | //TODO: pass rth->fd instead of full rth? | ||
58 | int FAST_FUNC rtnl_send(struct rtnl_handle *rth, char *buf, int len) | 59 | int FAST_FUNC rtnl_send(struct rtnl_handle *rth, char *buf, int len) |
59 | { | 60 | { |
60 | struct sockaddr_nl nladdr; | 61 | struct sockaddr_nl nladdr; |
@@ -392,7 +393,7 @@ void FAST_FUNC parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, in | |||
392 | if (rta->rta_type <= max) { | 393 | if (rta->rta_type <= max) { |
393 | tb[rta->rta_type] = rta; | 394 | tb[rta->rta_type] = rta; |
394 | } | 395 | } |
395 | rta = RTA_NEXT(rta,len); | 396 | rta = RTA_NEXT(rta, len); |
396 | } | 397 | } |
397 | if (len) { | 398 | if (len) { |
398 | bb_error_msg("deficit %d, rta_len=%d!", len, rta->rta_len); | 399 | bb_error_msg("deficit %d, rta_len=%d!", len, rta->rta_len); |