mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Pipe protocol supports reconfiguration.
This commit is contained in:
parent
88dc89f991
commit
0ec90e9fc6
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user