diff options
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r-- | usr.sbin/bgpd/session.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index c9448e132f0..41884e75c58 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.138 2019/05/24 11:37:52 claudio Exp $ */ +/* $OpenBSD: session.h,v 1.139 2019/05/27 09:14:33 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -196,7 +196,7 @@ TAILQ_HEAD(peer_timer_head, peer_timer); struct peer { struct peer_config conf; struct peer_stats stats; - TAILQ_ENTRY(peer) entry; + RB_ENTRY(peer) entry; struct { struct capabilities ann; struct capabilities peer; @@ -294,6 +294,8 @@ void print_config(struct bgpd_config *, struct rib_names *); void rde_main(int, int); /* session.c */ +RB_PROTOTYPE(peer_head, peer, entry, peer_compare); + void session_main(int, int); void bgp_fsm(struct peer *, enum session_events); int session_neighbor_rrefresh(struct peer *p); |