summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-01-23 14:48:07 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-01-23 14:48:07 +0100
commite5ff7929c4d85b84496cdfc46f006b8cd1b4c0e5 (patch)
tree9b5ba67a6cfbe14b68be4fa67a194a098e830e1d /sysdep
parentdef6efa1ef98966424a73923832c6912acefc0ba (diff)
KRT: Remove useless option
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/krt.Y1
-rw-r--r--sysdep/unix/krt.c2
-rw-r--r--sysdep/unix/krt.h1
3 files changed, 1 insertions, 3 deletions
diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y
index 1cb28389..31f5f1d4 100644
--- a/sysdep/unix/krt.Y
+++ b/sysdep/unix/krt.Y
@@ -78,7 +78,6 @@ kern_item:
cf_error("Learning of kernel routes not supported on this platform");
#endif
}
- | DEVICE ROUTES bool { THIS_KRT->devroutes = $3; }
| GRACEFUL RESTART bool { THIS_KRT->graceful_restart = $3; }
| MERGE PATHS bool kern_mp_limit {
krt_set_merge_paths(this_channel, $3, $4);
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 29d2d01e..d4c0db72 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -1159,7 +1159,7 @@ krt_reconfigure(struct proto *p, struct proto_config *CF)
return 0;
/* persist, graceful restart need not be the same */
- return o->scan_time == n->scan_time && o->learn == n->learn && o->devroutes == n->devroutes;
+ return o->scan_time == n->scan_time && o->learn == n->learn;
}
struct proto_config *
diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h
index 3bfccfc2..8d3add0e 100644
--- a/sysdep/unix/krt.h
+++ b/sysdep/unix/krt.h
@@ -49,7 +49,6 @@ struct krt_config {
btime scan_time; /* How often we re-scan routes */
int persist; /* Keep routes when we exit */
int learn; /* Learn routes from other sources */
- int devroutes; /* XXX: remove */
int graceful_restart; /* Regard graceful restart recovery */
};