summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.h
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-02-26 14:21:48 +0100
committerSteven Barth <steven@midlink.org>2014-02-26 14:21:48 +0100
commit4d09244bc73a3b8bc8168366526e4ddded41057e (patch)
tree484a98a93780e593f529124448589a88ca931b38 /interface-ip.h
parent9bf007985b20cb65147d8fd8ff59a6eb65ed22b8 (diff)
Don't always assume routes & addresses are applied
Actually check netlink return values and remember failure. Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'interface-ip.h')
-rw-r--r--interface-ip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/interface-ip.h b/interface-ip.h
index 2559bcc..de8343d 100644
--- a/interface-ip.h
+++ b/interface-ip.h
@@ -77,6 +77,7 @@ struct device_prefix {
struct device_addr {
struct vlist_node node;
bool enabled;
+ bool failed;
/* ipv4 only */
uint32_t broadcast;
@@ -99,6 +100,7 @@ struct device_route {
bool enabled;
bool keep;
+ bool failed;
union if_addr nexthop;
int mtu;