]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes preference in transparent pipes.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 17 Sep 2009 10:40:02 +0000 (12:40 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 17 Sep 2009 10:40:02 +0000 (12:40 +0200)
proto/pipe/pipe.c

index 8ff430a921d4c8b09fc315b157574b218a554808..e57c9efde712def6f31ac93042c58a87ecac0f31 100644 (file)
@@ -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;