summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/notification.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2013-06-01 19:42:08 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2013-06-01 19:42:08 +0000
commitd04db9bac26b730bfa2973a7e3324c50ab0d9ced (patch)
tree70ad7bf520c0721c35e3b6477ceddc277ff0883b /usr.sbin/ldpd/notification.c
parent5fbcca0bca65993c9af7a039e9d9e58ddd9a3e4f (diff)
Restart the keepalive timer whenever a LDP PDU is sent. There is no need
to send a keepalive packet when a other PDU was sent out. Also add a missing NBR_EVT_PDU_RCVD call to recv_address() which restarts the session keepalive timeout. All other places already do that. Diff by Renato Westphal
Diffstat (limited to 'usr.sbin/ldpd/notification.c')
-rw-r--r--usr.sbin/ldpd/notification.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/notification.c b/usr.sbin/ldpd/notification.c
index 2cf419f5a60..580167e5568 100644
--- a/usr.sbin/ldpd/notification.c
+++ b/usr.sbin/ldpd/notification.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: notification.c,v 1.11 2013/06/01 18:47:07 claudio Exp $ */
+/* $OpenBSD: notification.c,v 1.12 2013/06/01 19:42:07 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -47,6 +47,7 @@ send_notification_nbr(struct nbr *nbr, u_int32_t status, u_int32_t msgid,
buf = send_notification(status, msgid, type);
evbuf_enqueue(&nbr->wbuf, buf);
+ nbr_fsm(nbr, NBR_EVT_PDU_SENT);
}
struct ibuf *