summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_message.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-07-20 17:13:22 +0200
committerAdriano Marto Reis <adrianomarto@gmail.com>2023-10-09 23:54:56 +0200
commit73940e52f285819b1d548b4e7128f7946c6bfe39 (patch)
treee9e169ec8fc9b2e94639737fd8490b3089ef3ba8 /ospf6d/ospf6_message.c
parentospf6d: advertise local addresses with LA bit (diff)
downloadfrr-73940e52f285819b1d548b4e7128f7946c6bfe39.tar.xz
frr-73940e52f285819b1d548b4e7128f7946c6bfe39.zip
ospf6d: factor out link-local addr change
For PtMP the cost may need to be recalculated when the LL addr changes (since neighbors are configured by LL addr and a different entry with a different cost may match.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_message.c')
-rw-r--r--ospf6d/ospf6_message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index 07da9a5ec..b50b408ea 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -479,7 +479,7 @@ static void ospf6_hello_recv(struct in6_addr *src, struct in6_addr *dst,
on->hello_in++;
/* Always override neighbor's source address */
- memcpy(&on->linklocal_addr, src, sizeof(struct in6_addr));
+ ospf6_neighbor_lladdr_set(on, src);
/* Neighbor ifindex check */
if (on->ifindex != (ifindex_t)ntohl(hello->interface_id)) {