From: Ondrej Zajicek Date: Thu, 17 Sep 2009 10:40:02 +0000 (+0200) Subject: Fixes preference in transparent pipes. X-Git-Tag: v1.2.0~37^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0781e9c62cd34175eb4e3bc61ffe785d08538727;p=thirdparty%2Fbird.git Fixes preference in transparent pipes. --- diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c index 8ff430a92..e57c9efde 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;