diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-17 01:20:45 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-17 01:20:45 +0100 |
commit | 0ec90e9fc6f6bec2d0b64f6b9711a6d3edb4bd52 (patch) | |
tree | 35a54f731a301cdaae17bb31994b1e0d9867fdd0 | |
parent | 88dc89f9918f524d9ca143d409c261a4a8230555 (diff) | |
download | bird-0ec90e9fc6f6bec2d0b64f6b9711a6d3edb4bd52.tar bird-0ec90e9fc6f6bec2d0b64f6b9711a6d3edb4bd52.zip |
Pipe protocol supports reconfiguration.
-rw-r--r-- | proto/pipe/pipe.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c index c6a8317..f439a15 100644 --- a/proto/pipe/pipe.c +++ b/proto/pipe/pipe.c @@ -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, }; |