summaryrefslogtreecommitdiff
path: root/proto/pipe/pipe.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-06-01 12:10:10 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-06-01 12:10:10 +0200
commit2d45e09f58c4ce857e10c241cf0e89b51b9ec49c (patch)
tree3355b3a745990f7c60be7ef5c37c3c222f87b054 /proto/pipe/pipe.h
parent23ac9e9a9eefe13918ee7f21a1d0f271a44d9efd (diff)
Adds opaque/transparent pipe mode selection.
Diffstat (limited to 'proto/pipe/pipe.h')
-rw-r--r--proto/pipe/pipe.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/pipe/pipe.h b/proto/pipe/pipe.h
index 7e9cf8ae..368ba41b 100644
--- a/proto/pipe/pipe.h
+++ b/proto/pipe/pipe.h
@@ -9,14 +9,19 @@
#ifndef _BIRD_PIPE_H_
#define _BIRD_PIPE_H_
+#define PIPE_OPAQUE 0
+#define PIPE_TRANSPARENT 1
+
struct pipe_config {
struct proto_config c;
struct rtable_config *peer; /* Table we're connected to */
+ int mode; /* PIPE_OPAQUE or PIPE_TRANSPARENT */
};
struct pipe_proto {
struct proto p;
struct rtable *peer;
+ int mode; /* PIPE_OPAQUE or PIPE_TRANSPARENT */
struct pipe_proto *phantom;
};