]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Reconfigure hook copied from bgp.
authorPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 12:32:45 +0000 (12:32 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 12:32:45 +0000 (12:32 +0000)
proto/rip/rip.c

index 6a03ae0e7ec027c55c309d4133b91b7a1b658282..2c8c83d4b832081a4325562cb89eb875a26491a3 100644 (file)
@@ -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,
 };