mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 14:39:54 +00:00
pimd: Ensure that *,G is first entry in srcs list
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
e7eefda4ba
commit
701ec0f474
@ -83,10 +83,10 @@ pim_jp_agg_src_cmp (void *arg1, void *arg2)
|
|||||||
if (!js1->is_join && js2->is_join)
|
if (!js1->is_join && js2->is_join)
|
||||||
return 1;
|
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 -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 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user