summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-07-27 17:31:34 +0200
committerAdriano Marto Reis <adrianomarto@gmail.com>2023-10-10 08:07:52 +1000
commit0c58d8368878f70dd23a566aaf96d3fcccbc5782 (patch)
tree22066613b81f01891ada8225de6f49226ad5ee59 /ospf6d/ospf6_interface.c
parent3d1482a9451039d94dce91f25dac8334354e1f92 (diff)
ospf6d: support unicast hellos on PtP/PtMP
Some lower layers still don't handle multicast correctly (or efficiently.) Add option to send unicast hellos on explicitly configured neighbors for PtP/PtMP. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r--ospf6d/ospf6_interface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c
index 2cd7ba5638..be6d3ac8f9 100644
--- a/ospf6d/ospf6_interface.c
+++ b/ospf6d/ospf6_interface.c
@@ -543,6 +543,9 @@ static int ospf6_interface_state_change(uint8_t next_state,
OSPF6_INTRA_PREFIX_LSA_SCHEDULE_STUB(oi->area);
}
+ if (next_state == OSPF6_INTERFACE_POINTTOPOINT)
+ ospf6_if_p2xp_up(oi);
+
hook_call(ospf6_interface_change, oi, next_state, prev_state);
return 0;
@@ -2777,6 +2780,7 @@ static int config_write_ospf6_interface(struct vty *vty, struct vrf *vrf)
vty_out(vty,
" ipv6 ospf6 p2p-p2mp disable-multicast-hello\n");
+ config_write_ospf6_p2xp_neighbor(vty, oi);
ospf6_bfd_write_config(vty, oi);
ospf6_auth_write_config(vty, &oi->at_data);