diff options
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r-- | networking/libiproute/iproute.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 2a8610ea6..b11078ed5 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -26,7 +26,10 @@ | |||
26 | 26 | ||
27 | struct filter_t { | 27 | struct filter_t { |
28 | int tb; | 28 | int tb; |
29 | /* Misnomer. Does not mean "flushed something" */ | ||
30 | /* More like "flush commands were constructed by print_route()" */ | ||
29 | smallint flushed; | 31 | smallint flushed; |
32 | /* Flush cmd buf. If !NULL, print_route() constructs flush commands in it */ | ||
30 | char *flushb; | 33 | char *flushb; |
31 | int flushp; | 34 | int flushp; |
32 | int flushe; | 35 | int flushe; |
@@ -53,7 +56,7 @@ typedef struct filter_t filter_t; | |||
53 | 56 | ||
54 | static int flush_update(void) | 57 | static int flush_update(void) |
55 | { | 58 | { |
56 | if (rtnl_send(G_filter.rth, G_filter.flushb, G_filter.flushp) < 0) { | 59 | if (rtnl_send_check(G_filter.rth, G_filter.flushb, G_filter.flushp) < 0) { |
57 | bb_perror_msg("can't send flush request"); | 60 | bb_perror_msg("can't send flush request"); |
58 | return -1; | 61 | return -1; |
59 | } | 62 | } |