]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Pipe protocol supports reconfiguration.
authorMartin Mares <mj@ucw.cz>
Mon, 17 Jan 2000 00:20:45 +0000 (00:20 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 17 Jan 2000 00:20:45 +0000 (00:20 +0000)
proto/pipe/pipe.c

index c6a8317d7dee5b6d8ee4bc1fd7730583c078001b..f439a15435d8339548193338c55f72721ed94246 100644 (file)
@@ -152,11 +152,21 @@ pipe_get_status(struct proto *P, byte *buf)
   bsprintf(buf, "-> %s", p->peer->name);
 }
 
+static int
+pipe_reconfigure(struct proto *p, struct proto_config *new)
+{
+  struct pipe_config *o = (struct pipe_config *) p->cf;
+  struct pipe_config *n = (struct pipe_config *) new;
+
+  return o->peer == n->peer;
+}
+
 struct protocol proto_pipe = {
   name:                "Pipe",
   postconfig:  pipe_postconfig,
   init:                pipe_init,
   start:       pipe_start,
   shutdown:    pipe_shutdown,
+  reconfigure: pipe_reconfigure,
   get_status:  pipe_get_status,
 };