mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 04:47:05 +00:00
pimd: use VTEP-PIP as pim-register's ip header SIP
The unique physical IP is used as the SIP in the ip header to ensure that pim-register-stop makes it back to the right MLAG switch. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
This commit is contained in:
parent
48b3386245
commit
d9e75668b6
@ -258,6 +258,15 @@ void pim_null_register_send(struct pim_upstream *up)
|
|||||||
|
|
||||||
/* checksum is broken */
|
/* checksum is broken */
|
||||||
src = pim_ifp->primary_address;
|
src = pim_ifp->primary_address;
|
||||||
|
if (PIM_UPSTREAM_FLAG_TEST_SRC_VXLAN_ORIG(up->flags)) {
|
||||||
|
if (!pim_vxlan_get_register_src(pim_ifp->pim, up, &src)) {
|
||||||
|
if (PIM_DEBUG_TRACE)
|
||||||
|
zlog_debug(
|
||||||
|
"%s: Cannot send null-register for %s vxlan-aa PIP unavailable",
|
||||||
|
__PRETTY_FUNCTION__, up->sg_str);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
pim_register_send((uint8_t *)&ip_hdr, sizeof(struct ip),
|
pim_register_send((uint8_t *)&ip_hdr, sizeof(struct ip),
|
||||||
src, rpg, 1, up);
|
src, rpg, 1, up);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user