summaryrefslogtreecommitdiff
path: root/isisd/isis_lsp.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-12 23:56:04 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-13 14:49:49 +0300
commita4777e465ab5515bf36ad5f3dc4c413adf9d15b6 (patch)
tree59d13a892df0eb38c11fa89745e8ebcddeee792a /isisd/isis_lsp.h
parent74ef8dd96158b3e0898a323d893f74449e0a412a (diff)
isisd: fix processing of the attached bit
There are two problems with the current code for processing the attached bit: - we should process it when acting both a level-1-only and level-1-2 - we should add the default route when we don't have L2 adjacensies, not when we don't have other routers configured on the device Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'isisd/isis_lsp.h')
-rw-r--r--isisd/isis_lsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isis_lsp.h b/isisd/isis_lsp.h
index f3d9f61bcf..cac5f0d733 100644
--- a/isisd/isis_lsp.h
+++ b/isisd/isis_lsp.h
@@ -77,6 +77,8 @@ int _lsp_regenerate_schedule(struct isis_area *area, int level,
int lsp_generate_pseudo(struct isis_circuit *circuit, int level);
int lsp_regenerate_schedule_pseudo(struct isis_circuit *circuit, int level);
+bool isis_level2_adj_up(struct isis_area *area);
+
struct isis_lsp *lsp_new(struct isis_area *area, uint8_t *lsp_id,
uint16_t rem_lifetime, uint32_t seq_num,
uint8_t lsp_bits, uint16_t checksum,