mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
Fixes preference in transparent pipes.
This commit is contained in:
parent
5eb4d0180e
commit
0781e9c62c
@ -62,11 +62,14 @@ pipe_send(struct pipe_proto *p, rtable *dest, net *n, rte *new, rte *old, ea_lis
|
|||||||
a.eattrs = attrs;
|
a.eattrs = attrs;
|
||||||
e = rte_get_temp(&a);
|
e = rte_get_temp(&a);
|
||||||
e->net = nn;
|
e->net = nn;
|
||||||
|
e->pflags = 0;
|
||||||
|
|
||||||
if (p->mode == PIPE_TRANSPARENT)
|
if (p->mode == PIPE_TRANSPARENT)
|
||||||
{
|
{
|
||||||
/* Copy protocol specific embedded attributes. */
|
/* Copy protocol specific embedded attributes. */
|
||||||
memcpy(&(e->u), &(new->u), sizeof(e->u));
|
memcpy(&(e->u), &(new->u), sizeof(e->u));
|
||||||
|
e->pref = new->pref;
|
||||||
|
e->pflags = new->pflags;
|
||||||
}
|
}
|
||||||
|
|
||||||
src = new->attrs->proto;
|
src = new->attrs->proto;
|
||||||
|
Loading…
Reference in New Issue
Block a user