diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-07-20 17:13:22 +0200 |
---|---|---|
committer | Adriano Marto Reis <adrianomarto@gmail.com> | 2023-10-09 23:54:56 +0200 |
commit | 73940e52f285819b1d548b4e7128f7946c6bfe39 (patch) | |
tree | e9e169ec8fc9b2e94639737fd8490b3089ef3ba8 /ospf6d/ospf6_message.c | |
parent | ospf6d: advertise local addresses with LA bit (diff) | |
download | frr-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.c | 2 |
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)) { |