From d3d7474ba98f01e6d9994ff48c0b3a4331a8ef2a Mon Sep 17 00:00:00 2001 From: hasso Date: Wed, 28 Sep 2005 18:30:51 +0000 Subject: * isis_dynh.c, isisd.h: Implement dynamic hostname cache cleanup. * isis_lsp.c: Refresh dynamic hostname in the cache while refreshing topology LSP. --- isisd/isis_lsp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'isisd/isis_lsp.c') 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)); -- cgit v1.2.1