summaryrefslogtreecommitdiff
path: root/proto/static/static.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-02-26 13:25:39 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2014-02-26 16:01:20 +0100
commitd40c26594c22ad934a13061e11b373bdf81af8f9 (patch)
tree870d09d0868de496efc8a2c4996c1608310b0fc3 /proto/static/static.h
parent3216eb03ddddc057bb18fa4dd02b7935a604f71f (diff)
Fixes issues with static protocol reconfiguration.
The old static route was not removed when the nexthop changed and the new one was not viable (no neighbor). Thanks to Pierluigi Rolando for the original patch.
Diffstat (limited to 'proto/static/static.h')
-rw-r--r--proto/static/static.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/static/static.h b/proto/static/static.h
index eb87ddec..99a0e68b 100644
--- a/proto/static/static.h
+++ b/proto/static/static.h
@@ -31,7 +31,7 @@ struct static_route {
struct neighbor *neigh;
byte *if_name; /* Name for RTD_DEVICE routes */
struct static_route *mp_next; /* Nexthops for RTD_MULTIPATH routes */
- int installed; /* Installed in master table */
+ int installed; /* Installed in rt table, -1 for reinstall */
};
/* Dummy nodes (parts of multipath route) abuses masklen field for weight