summaryrefslogtreecommitdiff
path: root/proto/pipe/pipe.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-02-13 10:44:46 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-02-13 10:44:46 +0100
commit9db74169be76f658df2207d1ec99eac48fa36f5f (patch)
tree0221de7d14f9a27519d8a5bc3f0e58a37c6f0acf /proto/pipe/pipe.c
parentc83876265eeae3591bfe90375503728e633cb807 (diff)
Fixes protocol statistics for pipes.
Diffstat (limited to 'proto/pipe/pipe.c')
-rw-r--r--proto/pipe/pipe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c
index d9df03ba..879135d1 100644
--- a/proto/pipe/pipe.c
+++ b/proto/pipe/pipe.c
@@ -234,6 +234,13 @@ pipe_get_peer_table(struct proto *P)
return p->peer;
}
+struct proto_stats *
+pipe_get_peer_stats(struct proto *P)
+{
+ struct pipe_proto *p = (struct pipe_proto *) P;
+ return &p->phantom->p.stats;
+}
+
struct protocol proto_pipe = {
name: "Pipe",
template: "pipe%d",