summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 14:32:45 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-10 14:32:45 +0200
commit7f5f44bb9248f05f397617f3874feef26bbb0b0b (patch)
treee9a311ddf7e58726d6a558b82428c4ed1bde1320
parent84a1305437ddd893771c43d1a9bff32260a56789 (diff)
downloadbird-7f5f44bb9248f05f397617f3874feef26bbb0b0b.tar
bird-7f5f44bb9248f05f397617f3874feef26bbb0b0b.zip
Reconfigure hook copied from bgp.
-rw-r--r--proto/rip/rip.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 6a03ae0..2c8c83d 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -865,6 +865,16 @@ rip_get_attr(eattr *a, byte *buf)
}
}
+static int
+rip_reconfigure(struct proto *p, struct proto_config *c)
+{
+ struct rip_config *new = (struct rip_config *) c;
+
+ return !memcmp(((byte *) P_CF) + sizeof(struct proto_config),
+ ((byte *) new) + sizeof(struct proto_config),
+ sizeof(struct rip_proto_config) - sizeof(struct proto_config));
+}
+
struct protocol proto_rip = {
name: "RIP",
template: "rip%d",
@@ -875,4 +885,5 @@ struct protocol proto_rip = {
init: rip_init,
dump: rip_dump,
start: rip_start,
+ reconfigure: rip_reconfigure,
};