Skip to content

Commit

Permalink
Update isis_lsp.c
Browse files Browse the repository at this point in the history
The purged LSP message is not processed.

Signed-off-by: zhou-run <[email protected]>
  • Loading branch information
zhou-run authored Jun 21, 2024
1 parent 97201a0 commit 2927749
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions isisd/isis_lsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,17 +483,17 @@ static void lsp_update_data(struct isis_lsp *lsp, struct isis_lsp_hdr *hdr,
lsp->tlvs = tlvs;

if (area->dynhostname) {
if (lsp->tlvs->hostname) {
if (lsp->hdr.rem_lifetime) {
if (lsp->hdr.rem_lifetime) {
if (lsp->tlvs->hostname) {
isis_dynhn_insert(
area->isis, lsp->hdr.lsp_id, lsp->tlvs->hostname,
(lsp->hdr.lsp_bits & LSPBIT_IST) == IS_LEVEL_1_AND_2
? IS_LEVEL_2
: IS_LEVEL_1);
} else {
isis_dynhn_remove(area->isis, lsp->hdr.lsp_id);
}
} else {
isis_dynhn_remove(area->isis, lsp->hdr.lsp_id);
}
}
}

return;
Expand Down

0 comments on commit 2927749

Please sign in to comment.