diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2013-06-01 19:42:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2013-06-01 19:42:08 +0000 |
commit | d04db9bac26b730bfa2973a7e3324c50ab0d9ced (patch) | |
tree | 70ad7bf520c0721c35e3b6477ceddc277ff0883b /usr.sbin/ldpd/ldpd.h | |
parent | 5fbcca0bca65993c9af7a039e9d9e58ddd9a3e4f (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/ldpd.h')
-rw-r--r-- | usr.sbin/ldpd/ldpd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/ldpd.h b/usr.sbin/ldpd/ldpd.h index 9fafcf2be02..c111b209eea 100644 --- a/usr.sbin/ldpd/ldpd.h +++ b/usr.sbin/ldpd/ldpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ldpd.h,v 1.35 2013/06/01 19:28:55 claudio Exp $ */ +/* $OpenBSD: ldpd.h,v 1.36 2013/06/01 19:42:07 claudio Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -154,6 +154,7 @@ enum nbr_event { NBR_EVT_INIT_RCVD, NBR_EVT_KEEPALIVE_RCVD, NBR_EVT_PDU_RCVD, + NBR_EVT_PDU_SENT, NBR_EVT_INIT_SENT, NBR_EVT_DOWN }; |