mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00:00
pim6d: creating pim6reg interface for pim6d
Signed-off-by: Sarita Patra <saritap@vmware.com>
This commit is contained in:
parent
d8cace8772
commit
ee1c4ba977
@ -1546,9 +1546,9 @@ void pim_if_create_pimreg(struct pim_instance *pim)
|
|||||||
|
|
||||||
if (!pim->regiface) {
|
if (!pim->regiface) {
|
||||||
if (pim->vrf->vrf_id == VRF_DEFAULT)
|
if (pim->vrf->vrf_id == VRF_DEFAULT)
|
||||||
strlcpy(pimreg_name, "pimreg", sizeof(pimreg_name));
|
strlcpy(pimreg_name, PIMREG, sizeof(pimreg_name));
|
||||||
else
|
else
|
||||||
snprintf(pimreg_name, sizeof(pimreg_name), "pimreg%u",
|
snprintf(pimreg_name, sizeof(pimreg_name), PIMREG "%u",
|
||||||
pim->vrf->data.l.table_id);
|
pim->vrf->data.l.table_id);
|
||||||
|
|
||||||
pim->regiface = if_get_by_name(pimreg_name, pim->vrf->vrf_id,
|
pim->regiface = if_get_by_name(pimreg_name, pim->vrf->vrf_id,
|
||||||
@ -1718,7 +1718,7 @@ static int pim_ifp_up(struct interface *ifp)
|
|||||||
* If we have a pimreg device callback and it's for a specific
|
* If we have a pimreg device callback and it's for a specific
|
||||||
* table set the master appropriately
|
* table set the master appropriately
|
||||||
*/
|
*/
|
||||||
if (sscanf(ifp->name, "pimreg%" SCNu32, &table_id) == 1) {
|
if (sscanf(ifp->name, "" PIMREG "%" SCNu32, &table_id) == 1) {
|
||||||
struct vrf *vrf;
|
struct vrf *vrf;
|
||||||
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
||||||
if ((table_id == vrf->data.l.table_id)
|
if ((table_id == vrf->data.l.table_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user