diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-07 02:44:25 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-23 17:58:33 +0100 |
commit | 701ec0f47482e076151f2bce56988d636752f0dd (patch) | |
tree | af27bee6e6531fdb4cc9db9ed996e219480c2f3c /pimd | |
parent | pimd: Optimize group size figuring out. (diff) | |
download | frr-701ec0f47482e076151f2bce56988d636752f0dd.tar.xz frr-701ec0f47482e076151f2bce56988d636752f0dd.zip |
pimd: Ensure that *,G is first entry in srcs list
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_jp_agg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_jp_agg.c b/pimd/pim_jp_agg.c index 29faace32..251e67a35 100644 --- a/pimd/pim_jp_agg.c +++ b/pimd/pim_jp_agg.c @@ -83,10 +83,10 @@ pim_jp_agg_src_cmp (void *arg1, void *arg2) if (!js1->is_join && js2->is_join) return 1; - if (js1->up->sg.src.s_addr < js2->up->sg.src.s_addr) + if ((uint32_t)js1->up->sg.src.s_addr < (uint32_t)js2->up->sg.src.s_addr) return -1; - if (js1->up->sg.src.s_addr > js2->up->sg.src.s_addr) + if ((uint32_t)js1->up->sg.src.s_addr > (uint32_t)js2->up->sg.src.s_addr) return 1; return 0; |