diff options
| author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-12-06 21:54:25 +0100 |
|---|---|---|
| committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-09-11 22:11:41 +0200 |
| commit | 604fcd30db1a734b6ddff6aeeb33eabd120c0696 (patch) | |
| tree | 01168704fb45892f539d6557155fddbb8c714761 /isisd | |
| parent | 48d1cd17482fb37f1927734e70c473d03cf6dc5b (diff) | |
isisd: Advertise SRv6 Locator in Prefix Reach TLV
According to RFC 9352 section #5, the SRv6 Locators associated with
algorithms 0 and 1 should be also advertised in a Prefix Reachability
TLV (236 or 237) to allow legacy routers (i.e., routers that do not
support SRv6) installing a forwarding entry for algorithms 0 and 1 SRv6
traffic.
This commits extend IS-IS to advertise SRv6 Locators in IPv6
Reachability TLV.
Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_lsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index e5970f6509..1b3491f5d3 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -1262,6 +1262,10 @@ static void lsp_build(struct isis_lsp *lsp, struct isis_area *area) area->area_tag); list_delete(&locator.srv6_sid); + + isis_tlvs_add_ipv6_reach(lsp->tlvs, + isis_area_ipv6_topology(area), + &chunk->prefix, 0, false, NULL); } /* IPv4 address and TE router ID TLVs. |
