diff options
| author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-11-15 11:28:40 -0800 |
|---|---|---|
| committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2019-11-15 12:00:29 -0800 |
| commit | ec83653333cc27d6f552f4b08842a7dfecce49e1 (patch) | |
| tree | 48ab478c8cfd2e317c1be73b14c5de22c9ea6bb4 /pimd/pim_msdp.c | |
| parent | 103ab2db3502beaaeea23e384038c9d10eb37be4 (diff) | |
pimd: replace direct accesses to t_ka_timer with a kat_running macro
No functional change, simple cleanup to improve readability
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_msdp.c')
| -rw-r--r-- | pimd/pim_msdp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c index 74a3a9836b..65bfebec3b 100644 --- a/pimd/pim_msdp.c +++ b/pimd/pim_msdp.c @@ -445,10 +445,9 @@ static bool pim_msdp_sa_local_add_ok(struct pim_upstream *up) return false; } - if (!up->t_ka_timer) { + if (!pim_upstream_is_kat_running(up)) /* stream is not active */ return false; - } if (!I_am_RP(pim, up->sg.grp)) { /* we are not RP for the group */ |
