summaryrefslogtreecommitdiffstats
path: root/isisd/isis_lsp.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-12 22:56:50 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-13 13:49:49 +0200
commitd0f1492145b68643fb8a2b31307d91e1139e3cfa (patch)
tree6a4529613dd54214ab0b66a6042742543f93cd1c /isisd/isis_lsp.c
parentisisd: fix processing of the attached bit (diff)
downloadfrr-d0f1492145b68643fb8a2b31307d91e1139e3cfa.tar.xz
frr-d0f1492145b68643fb8a2b31307d91e1139e3cfa.zip
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 <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_lsp.c')
-rw-r--r--isisd/isis_lsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c
index c0b74a904..5c013d634 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;