summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-09-17 12:40:02 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-09-17 12:40:02 +0200
commit0781e9c62cd34175eb4e3bc61ffe785d08538727 (patch)
tree13471fe714da4095e9c117147b7ab682ce537f63
parent5eb4d0180ed92cee31d962fbc4d0175a7e1d5933 (diff)
downloadbird-0781e9c62cd34175eb4e3bc61ffe785d08538727.tar
bird-0781e9c62cd34175eb4e3bc61ffe785d08538727.zip
Fixes preference in transparent pipes.
-rw-r--r--proto/pipe/pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c
index 8ff430a..e57c9ef 100644
--- a/proto/pipe/pipe.c
+++ b/proto/pipe/pipe.c
@@ -62,11 +62,14 @@ pipe_send(struct pipe_proto *p, rtable *dest, net *n, rte *new, rte *old, ea_lis
a.eattrs = attrs;
e = rte_get_temp(&a);
e->net = nn;
+ e->pflags = 0;
if (p->mode == PIPE_TRANSPARENT)
{
/* Copy protocol specific embedded attributes. */
memcpy(&(e->u), &(new->u), sizeof(e->u));
+ e->pref = new->pref;
+ e->pflags = new->pflags;
}
src = new->attrs->proto;