summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_session.c
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-01-06 12:06:43 +0000
committerChris Hall <GMCH@hestia.halldom.com>2010-01-06 12:06:43 +0000
commitf2c33e324e1d6194f3f5ca6f3b8f6d08cce8fb69 (patch)
tree74b5d39c8831ff84dc53e0c0c0d73f40b0e178a8 /bgpd/bgp_session.c
parent4a6acac1becf0af0be0deb9fc17d4cdcf8595071 (diff)
downloadquagga-f2c33e324e1d6194f3f5ca6f3b8f6d08cce8fb69.tar.bz2
quagga-f2c33e324e1d6194f3f5ca6f3b8f6d08cce8fb69.tar.xz
Work in progress on BGP Engine
modified: bgpd/bgp_common.h modified: bgpd/bgp_connection.c modified: bgpd/bgp_connection.h modified: bgpd/bgp_fsm.c modified: bgpd/bgp_fsm.h modified: bgpd/bgp_network.c modified: bgpd/bgp_open_state.h modified: bgpd/bgp_session.c modified: bgpd/bgp_session.h
Diffstat (limited to 'bgpd/bgp_session.c')
-rw-r--r--bgpd/bgp_session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_session.c b/bgpd/bgp_session.c
index 4d19308f..f21743ca 100644
--- a/bgpd/bgp_session.c
+++ b/bgpd/bgp_session.c
@@ -23,6 +23,7 @@
#include "bgpd/bgp_peer.h"
#include "lib/memory.h"
+#include "lib/sockunion.h"
/*==============================================================================
* BGP Session.
@@ -123,7 +124,7 @@ bgp_session_enable(bgp_session session, bgp_peer peer)
session->ttl = peer->ttl ;
session->port = peer->port ;
-//session->su = peer->su ;
+ session->su_peer = sockunion_dup(&peer->su) ;
session->log = peer->log ;
session->host = peer->host ;
@@ -137,7 +138,7 @@ bgp_session_enable(bgp_session session, bgp_peer peer)
/* Initialise the BGP Open negotiating position */
- session->router_id = peer->local_id ;
+ /*....*/
/* Now pass the session to the BGP Engine, which will set about */
/* making and running a connection to the peer. */