diff options
| author | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-02-20 19:18:00 +0100 |
|---|---|---|
| committer | Olivier Dugeon <olivier.dugeon@orange.com> | 2023-04-07 16:40:25 +0200 |
| commit | 9a9f0b893ea125f6aa664f633c91a4576759fbca (patch) | |
| tree | 36db394b9753f6ebd64697ba31680581f2b0cca1 /lib/compiler.h | |
| parent | bdf62ec61b343adc007a93a66081d26d1483950a (diff) | |
lib: Update Edge Key in link_state
The original uin64_t for the edge key in link state is not always appropriate
with IPv6 addresses. In some cases, 2 different edge with 2 different IPv6
addresses could conduct to the same key. The resulting TED is wrong in this
case.
This patch replace the uint64_t edge key by a dedicated structure. The
resulting key of the edge is:
- the local IPv4 address of the corresponding link
- the local IPv6 address if no IPv4 address is configured on the link
- the local + remote link ID for unnumbered address
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Diffstat (limited to 'lib/compiler.h')
0 files changed, 0 insertions, 0 deletions
