summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-08-06 08:10:13 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-08-06 08:10:13 +0000
commit0c49cf16f2104d7ecc061185aefad001ac8bed2e (patch)
tree4d67b87c017ef2d745ce4024b976a858f4d4a76c /usr.sbin
parent37154b19553064f0c4706448afa7f8ea79f55c01 (diff)
Replace two asp->peer with prefix_peer(p) which is the same.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index b149451abc9..f548b11a9f4 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.408 2018/08/03 16:31:22 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.409 2018/08/06 08:10:12 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2120,7 +2120,7 @@ rde_dump_filter(struct prefix *p, struct ctl_show_rib_request *req)
if (req->flags & F_CTL_ADJ_IN ||
!(req->flags & (F_CTL_ADJ_IN|F_CTL_ADJ_OUT))) {
asp = prefix_aspath(p);
- if (req->peerid && req->peerid != asp->peer->conf.id)
+ if (req->peerid && req->peerid != prefix_peer(p)->conf.id)
return;
if (req->type == IMSG_CTL_SHOW_RIB_AS &&
!aspath_match(asp->aspath->data, asp->aspath->len,
@@ -2882,7 +2882,7 @@ rde_softreconfig_in(struct rib_entry *re, void *bula)
pt_getaddr(pt, &addr);
LIST_FOREACH(p, &re->prefix_h, rib_l) {
asp = prefix_aspath(p);
- peer = asp->peer;
+ peer = prefix_peer(p);
for (i = RIB_LOC_START; i < rib_size; i++) {
rib = &ribs[i];