diff options
author | 2018-11-08 09:53:38 +0000 | |
---|---|---|
committer | 2018-11-08 09:53:38 +0000 | |
commit | 91fa79ea48be2e1ef7e2ff3c02368b88e9c88d74 (patch) | |
tree | a350d60231cf2523a8c097b53ebef71f7985199a | |
parent | Only whack the RIB and recreate it if the the FIB distribution flags changed (diff) | |
download | wireguard-openbsd-91fa79ea48be2e1ef7e2ff3c02368b88e9c88d74.tar.xz wireguard-openbsd-91fa79ea48be2e1ef7e2ff3c02368b88e9c88d74.zip |
Committed wrong version. Check the flags against the fib flags from the
config and not the old flags. Needed so that changing flags and rtableid
at the same time works.
-rw-r--r-- | usr.sbin/bgpd/rde.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 28e0740fb19..3f6df071f06 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.446 2018/11/08 09:50:30 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.447 2018/11/08 09:53:38 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -791,7 +791,7 @@ rde_dispatch_imsg_parent(struct imsgbuf *ibuf) rib = rib_new(rn.name, rn.rtableid, rn.flags); else if ((rib->flags & F_RIB_HASNOFIB) != (rn.flags & F_RIB_HASNOFIB) || (rib->rtableid != - rn.rtableid && !(rib->flags & F_RIB_HASNOFIB))) { + rn.rtableid && !(rn.flags & F_RIB_HASNOFIB))) { struct filter_head *in_rules; struct rib_desc *ribd = rib_desc(rib); /* |