summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-01 01:21:37 +0200
committerMartin Mares <mj@ucw.cz>2000-04-01 01:21:37 +0200
commitc00d31befab5a7e932231f7a8050547c72c94631 (patch)
tree7695b995629f05e35fb04311a626a2866d4e9a02 /proto/bgp/bgp.c
parent08732b71784b640aebbea88d4452f4c5987d0a09 (diff)
downloadbird-c00d31befab5a7e932231f7a8050547c72c94631.tar
bird-c00d31befab5a7e932231f7a8050547c72c94631.zip
Parsing of BGP attributes.
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index e415756..e95e334 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -96,6 +96,8 @@ bgp_close_conn(struct bgp_conn *conn)
{
bgp_close(p);
p->conn = NULL;
+ if (conn->error_flag) /* FIXME: Enable automatically? */
+ p->p.disabled = 1;
proto_notify_state(&p->p, PS_DOWN);
}
}