summaryrefslogtreecommitdiff
path: root/pimd/pim_msdp_packet.c
diff options
context:
space:
mode:
authoranuradhak <anuradhak@cumulusnetworks.com>2016-12-01 15:46:36 -0800
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-21 20:26:17 -0500
commit69053fb4f0bf1b66a91b28e43c1a9a64db739d65 (patch)
tree12ed962416b29d41431410a1831f1e0a08969394 /pimd/pim_msdp_packet.c
parent52d8f0d84f47e090b30544468953ab9060430322 (diff)
pimd: restart the ka timer after the sa adv timer
To avoid unnecessary ka activity in the network. When the SA advertisment timer fires we build SA TLVs and send them to peers. As a part of this tx we were also restarting the ka timer to avoid unnecessary ka generation in the next 60 seconds. However because the adv timer was restarted after tx (i.e. after ka restart) ka timer would always endup firing just before the adv timer.
Diffstat (limited to 'pimd/pim_msdp_packet.c')
-rw-r--r--pimd/pim_msdp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_msdp_packet.c b/pimd/pim_msdp_packet.c
index 8ee45813ca..3f3f9d1de0 100644
--- a/pimd/pim_msdp_packet.c
+++ b/pimd/pim_msdp_packet.c
@@ -194,7 +194,7 @@ pim_msdp_write(struct thread *thread)
enum pim_msdp_tlv type;
int len;
int work_cnt = 0;
- int work_max_cnt = 1;
+ int work_max_cnt = 12;
mp = THREAD_ARG(thread);
mp->t_write = NULL;