summaryrefslogtreecommitdiff
path: root/isisd/isis_lsp.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-09-28 18:30:51 +0000
committerhasso <hasso>2005-09-28 18:30:51 +0000
commitd3d7474ba98f01e6d9994ff48c0b3a4331a8ef2a (patch)
treeefa9e1f7f1e7fdb79f5374c78301218f2b68bc95 /isisd/isis_lsp.c
parent9551eea4465e0e3eaab7a133fc06705c8f36afc4 (diff)
* isis_dynh.c, isisd.h: Implement dynamic hostname cache cleanup.
* isis_lsp.c: Refresh dynamic hostname in the cache while refreshing topology LSP.
Diffstat (limited to 'isisd/isis_lsp.c')
-rw-r--r--isisd/isis_lsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c
index c0574adb..f4a42a60 100644
--- a/isisd/isis_lsp.c
+++ b/isisd/isis_lsp.c
@@ -2154,6 +2154,10 @@ top_lsp_refresh (struct thread *thread)
zlog_debug ("ISIS-Upd (): refreshing Topology L1 %s",
rawlspid_print (lsp->lsp_header->lsp_id));
}
+ /* Refresh dynamic hostname in the cache. */
+ isis_dynhn_insert (lsp->lsp_header->lsp_id, lsp->tlv_data.hostname,
+ IS_LEVEL_1);
+
lsp->lsp_header->rem_lifetime =
htons (isis_jitter (lsp->area->max_lsp_lifetime[0], MAX_AGE_JITTER));