diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-27 22:37:55 +0000 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-27 22:37:55 +0000 |
commit | e29ed2adec0ef11ca1c84b40b2c98247f162f3df (patch) | |
tree | d0a65837f2a544c8e46f8ddda654e70686c531a1 /bgpd/bgp_peer_index.c | |
parent | e6d986058f23f350aa6aedac4da5fe9f3afda6e8 (diff) | |
download | quagga-e29ed2adec0ef11ca1c84b40b2c98247f162f3df.tar.bz2 quagga-e29ed2adec0ef11ca1c84b40b2c98247f162f3df.tar.xz |
Binding to interfaces and counting of messages.
Wired up message counters in bgp_session structure.
Added fields to session for neighbor interface and
neighbor update-source -- so that these can be set when connect()
is done. Peering Engine resolves any interface name to an address,
so that BGP Engine doesn't have to.
Reinstated as much code as necessary in bgp_network to bind to
specific interfaces, as set in the session.
Moved setting of bgp_nexthop_set() back into Routeing Engine.
Result is that only Peering Engine talks to Zebra or uses the
iflist.
Wired up setting of TTL.
Reworked connections locking of the session mutex so more robust
if/when connections are cut loose from the session.
Made peer_index entry point at connection, not session. Works
better in bgp_network that way.
modified: bgpd/bgp_connection.c
modified: bgpd/bgp_connection.h
modified: bgpd/bgp_fsm.c
modified: bgpd/bgp_msg_read.c
modified: bgpd/bgp_msg_write.c
modified: bgpd/bgp_network.c
modified: bgpd/bgp_network.h
modified: bgpd/bgp_peer.c
modified: bgpd/bgp_peer.h
modified: bgpd/bgp_peer_index.c
modified: bgpd/bgp_peer_index.h
modified: bgpd/bgp_session.c
modified: bgpd/bgp_session.h
modified: lib/prefix.h
modified: lib/sockunion.c
modified: lib/sockunion.h
Diffstat (limited to 'bgpd/bgp_peer_index.c')
-rw-r--r-- | bgpd/bgp_peer_index.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bgpd/bgp_peer_index.c b/bgpd/bgp_peer_index.c index 39b4f69e..72d3b17d 100644 --- a/bgpd/bgp_peer_index.c +++ b/bgpd/bgp_peer_index.c @@ -283,20 +283,20 @@ bgp_peer_index_seek_entry(union sockunion* su) * * For use by the BGP Engine. * - * Returns: bgp_session if: peer with given address is configured - * and: the session is prepared to accept() + * Returns: bgp_connection if: peer with given address is configured + * and: the session is prepared to accept() * * or: NULL otherwise * * Sets *p_found <=> a peer with the given address is configured. * - * NB: the BGP Engine sets/clears the pointer to the session. The pointer is - * initialised NULL when the index entry is created. + * NB: the BGP Engine sets/clears the pointer to the connection. The pointer + * is initialised NULL when the index entry is created. */ -extern bgp_session -bgp_session_index_seek(union sockunion* su, int* p_found) +extern bgp_connection +bgp_peer_index_seek_accept(union sockunion* su, int* p_found) { - bgp_session accept ; + bgp_connection accept ; bgp_peer_index_entry entry ; BGP_PEER_INDEX_LOCK() ; /*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/ |