summaryrefslogtreecommitdiffstats
path: root/isisd/isis_lsp.c
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2018-11-14 15:08:26 +0100
committerEmanuele Di Pascale <emanuele@voltanet.io>2018-12-18 15:24:46 +0100
commitb21b068dc9066197fc499801eb386c373a743a92 (patch)
tree5272274889f9558d78d98533a438efc7ad5d2a53 /isisd/isis_lsp.c
parentisisd: implement the 'corrupted-lsp-detected' notification (diff)
downloadfrr-b21b068dc9066197fc499801eb386c373a743a92.tar.xz
frr-b21b068dc9066197fc499801eb386c373a743a92.zip
isisd: implement the 'attempt-to-exceed-max-sequence' notification
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'isisd/isis_lsp.c')
-rw-r--r--isisd/isis_lsp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c
index 8d393c7a0..8b2af9975 100644
--- a/isisd/isis_lsp.c
+++ b/isisd/isis_lsp.c
@@ -355,6 +355,15 @@ void lsp_inc_seqno(struct isis_lsp *lsp, uint32_t seqno)
else
newseq = seqno + 1;
+#ifndef FABRICD
+ /* check for overflow */
+ if (newseq < lsp->hdr.seqno) {
+ /* send northbound notification */
+ isis_notif_lsp_exceed_max(lsp->area,
+ rawlspid_print(lsp->hdr.lsp_id));
+ }
+#endif /* ifndef FABRICD */
+
lsp->hdr.seqno = newseq;
lsp_pack_pdu(lsp);