summaryrefslogtreecommitdiffstats
path: root/nest/rt-dev.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-17 01:20:17 +0100
committerMartin Mares <mj@ucw.cz>2000-01-17 01:20:17 +0100
commit88dc89f9918f524d9ca143d409c261a4a8230555 (patch)
treeb4ef0ba2d4d11127374c7cb979dbf5507e5f4830 /nest/rt-dev.c
parent26368f656c2398acc4d3ed55879d2f371cecf75b (diff)
downloadbird-88dc89f9918f524d9ca143d409c261a4a8230555.tar
bird-88dc89f9918f524d9ca143d409c261a4a8230555.zip
Device protocol supports reconfiguration.
Diffstat (limited to 'nest/rt-dev.c')
-rw-r--r--nest/rt-dev.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c
index d73e376..23d9b56 100644
--- a/nest/rt-dev.c
+++ b/nest/rt-dev.c
@@ -77,8 +77,18 @@ dev_init(struct proto_config *c)
return p;
}
+static int
+dev_reconfigure(struct proto *p, struct proto_config *new)
+{
+ struct rt_dev_config *o = (struct rt_dev_config *) p->cf;
+ struct rt_dev_config *n = (struct rt_dev_config *) new;
+
+ return iface_patts_equal(&o->iface_list, &n->iface_list, NULL);
+}
+
struct protocol proto_device = {
name: "Direct",
priority: 90,
init: dev_init,
+ reconfigure: dev_reconfigure
};