diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2024-12-11 11:53:36 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2024-12-11 11:58:25 -0300 |
| commit | d4da6316c7ec016c8b89877fe081599bfb6f7f0c (patch) | |
| tree | ecbea7c0e2a4df0b1aafbea2d8bdf846219706ef /pimd/pim_instance.c | |
| parent | 6d759deea14e683ebefa24c06edd157ca9799521 (diff) | |
pimd: move all MSDP code to its own place
Guard MSDP code to compile only on IPv4 and remove all MSDP code from
PIMv6.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_instance.c')
| -rw-r--r-- | pimd/pim_instance.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index 9a76b5c924..5649e49835 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -53,7 +53,9 @@ static void pim_instance_terminate(struct pim_instance *pim) pim_oil_terminate(pim); +#if PIM_IPV == 4 pim_msdp_exit(pim); +#endif /* PIM_IPV == 4 */ close(pim->reg_sock); @@ -91,7 +93,9 @@ static struct pim_instance *pim_instance_init(struct vrf *vrf) pim->spt.switchover = PIM_SPT_IMMEDIATE; pim->spt.plist = NULL; +#if PIM_IPV == 4 pim_msdp_init(pim, router->master); +#endif /* PIM_IPV == 4 */ pim_vxlan_init(pim); snprintf(hash_name, sizeof(hash_name), "PIM %s RPF Hash", vrf->name); |
