The SRv6 Locator TLV (RFC 9352 section #7.1) starts with the MTID field.
Let's expect the MTID as the first field when we are unpacking an SRv6
Locator TLV.
Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
tlv_start = stream_get_getp(s);
tlv_pos = 0;
- if (context == ISIS_CONTEXT_LSP && IS_COMPAT_MT_TLV(tlv_type)) {
+ if (context == ISIS_CONTEXT_LSP &&
+ (IS_COMPAT_MT_TLV(tlv_type) || tlv_type == ISIS_TLV_SRV6_LOCATOR)) {
if (tlv_len < 2) {
sbuf_push(log, indent,
"TLV is too short to contain MTID\n");