]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Ensure SRv6 SID length does not exceed 128
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Tue, 23 Aug 2022 14:20:07 +0000 (16:20 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Tue, 18 Oct 2022 14:08:24 +0000 (16:08 +0200)
commit34e3711fb49212bc643a238d8a1e285a2fd5980d
treec4ea2407b710a785c1fc69e9866c0145b472a738
parentb3c5e11c8df2c7ec8f9e9a74c89dd5222ed35848
zebra: Ensure SRv6 SID length does not exceed 128

According to RFC 8986, the SRv6 SID length cannot exceed 128 bits. This
commit ensures that the condition
`block_len + node_len + function_len + arg_len <= 128` is satisfied when
a new SRv6 locator is created.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
zebra/zebra_srv6_vty.c