From: Igor Ryzhov Date: Mon, 12 Jul 2021 20:56:50 +0000 (+0300) Subject: isisd: fix setting IS type in LSPs X-Git-Tag: base_8.1~325^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F9024%2Fhead;p=mirror%2Ffrr.git isisd: fix setting IS type in LSPs IS type in an LSP is a type of the router, not a type of the circuit. Signed-off-by: Igor Ryzhov --- diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index c0b74a9044..5c013d634b 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -479,7 +479,7 @@ static uint8_t lsp_bits_generate(int level, int overload_bit, int attached_bit, struct isis_area *area) { uint8_t lsp_bits = 0; - if (level == IS_LEVEL_1) + if (area->is_type == IS_LEVEL_1) lsp_bits = IS_LEVEL_1; else lsp_bits = IS_LEVEL_1_AND_2;