diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-02 08:06:43 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-02 08:06:43 +0000 |
commit | 7e3bc69c2b2ea8cda7a83e23564155fcf1ab816c (patch) | |
tree | 7c4d53e1bf0874ef493ff291abe34b8bcebd6e8a /usr.sbin/bgpd/control.c | |
parent | ded67fece3e31c608ed2d8a8b46a7c25ec164c9b (diff) |
Implement all of RFC 4486 BGP Cease Notification Message Subcodes.
The other side should now see why a session was dropped. e.g:
bgpd: ... received notification: Cease, administratively down
OK henning
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index e8097dda77f..6ae4eb97ccb 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.61 2009/05/05 20:09:19 sthen Exp $ */ +/* $OpenBSD: control.c,v 1.62 2009/09/02 08:06:42 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -328,11 +328,11 @@ control_dispatch_msg(struct pollfd *pfd, u_int *ctl_cnt) control_result(c, CTL_RES_OK); break; case IMSG_CTL_NEIGHBOR_DOWN: - bgp_fsm(p, EVNT_STOP); + session_stop(p, ERR_CEASE_ADMIN_DOWN); control_result(c, CTL_RES_OK); break; case IMSG_CTL_NEIGHBOR_CLEAR: - bgp_fsm(p, EVNT_STOP); + session_stop(p, ERR_CEASE_ADMIN_RESET); timer_set(p, Timer_IdleHold, SESSION_CLEAR_DELAY); control_result(c, CTL_RES_OK); |