mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 23:58:44 +00:00
pimd: Fix some static analysis
Using && instead of &. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
5fd1f74742
commit
9eda95bde5
@ -202,7 +202,7 @@ pim_register_recv (struct interface *ifp,
|
|||||||
if (I_am_RP (group) && (dest_addr.s_addr == ((RP (group))->rpf_addr.s_addr))) {
|
if (I_am_RP (group) && (dest_addr.s_addr == ((RP (group))->rpf_addr.s_addr))) {
|
||||||
sentRegisterStop = 0;
|
sentRegisterStop = 0;
|
||||||
|
|
||||||
if (*bits && PIM_REGISTER_BORDER_BIT) {
|
if (*bits & PIM_REGISTER_BORDER_BIT) {
|
||||||
struct in_addr pimbr = pim_br_get_pmbr (source, group);
|
struct in_addr pimbr = pim_br_get_pmbr (source, group);
|
||||||
if (PIM_DEBUG_PIM_PACKETS)
|
if (PIM_DEBUG_PIM_PACKETS)
|
||||||
zlog_debug("%s: Received Register message with Border bit set", __func__);
|
zlog_debug("%s: Received Register message with Border bit set", __func__);
|
||||||
@ -243,7 +243,7 @@ pim_register_recv (struct interface *ifp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(upstream->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) &&
|
if (!(upstream->sptbit == PIM_UPSTREAM_SPTBIT_TRUE) &&
|
||||||
!(*bits && PIM_REGISTER_NR_BIT)) {
|
!(*bits & PIM_REGISTER_NR_BIT)) {
|
||||||
//decapsulate and forward the iner packet to
|
//decapsulate and forward the iner packet to
|
||||||
//inherited_olist(S,G,rpt)
|
//inherited_olist(S,G,rpt)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user