diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2003-12-18 22:22:23 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2003-12-18 22:22:23 +0000 |
commit | 5eb207fe7cab0d98a788446e222ede405750235c (patch) | |
tree | 25a3974e624cc8e14f6202cd7ef8d0dcf011d5b1 /usr.sbin/bgpd/rde.h | |
parent | 332d327f65af8664eb149422ea9cefcd9a0c104c (diff) |
First step for configuration merges in the RDE. Currently this will not
work correctly because the peer id changes on config reload. The code in
the RDE per se should be OK.
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r-- | usr.sbin/bgpd/rde.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index 1a0dc5a3c01..fd1bce12ea4 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.1 2003/12/17 11:46:54 henning Exp $ */ +/* $OpenBSD: rde.h,v 1.2 2003/12/18 22:22:22 claudio Exp $ */ /* * Copyright (c) 2003 Claudio Jeker <cjeker@diehard.n-r-g.com> and @@ -46,10 +46,12 @@ enum peer_state { * How do we identify peers between the session handler and the rde? * Currently I assume that we can do that with the neighbor_ip... */ +LIST_HEAD(rde_peer_head, rde_peer); LIST_HEAD(aspath_head, rde_aspath); struct rde_peer { - LIST_ENTRY(rde_peer) peer_l; /* hash list over all peers */ + LIST_ENTRY(rde_peer) hash_l; /* hash list over all peers */ + LIST_ENTRY(rde_peer) peer_l; /* list of all peers */ struct aspath_head path_h; /* list of all as pathes */ struct peer_config conf; u_int32_t remote_bgpid; |