Revision 3daf783f proto/pipe/pipe.c

View differences:

proto/pipe/pipe.c
14 14
#include "nest/route.h"
15 15
#include "conf/conf.h"
16 16
#include "filter/filter.h"
17
#include "lib/string.h"
17 18

  
18 19
#include "pipe.h"
19 20

  
......
133 134
    cf_error("Primary table and peer table must be different");
134 135
}
135 136

  
137
static void
138
pipe_get_status(struct proto *P, byte *buf)
139
{
140
  struct pipe_proto *p = (struct pipe_proto *) P;
141

  
142
  bsprintf(buf, "-> %s", p->peer->name);
143
}
144

  
136 145
struct protocol proto_pipe = {
137 146
  name:		"Pipe",
138 147
  postconfig:	pipe_postconfig,
139 148
  init:		pipe_init,
140 149
  start:	pipe_start,
150
  get_status:	pipe_get_status,
141 151
};

Also available in: Unified diff