* isis_dynh.c, isisd.h: Implement dynamic hostname cache cleanup.
	* isis_lsp.c: Refresh dynamic hostname in the cache while refreshing
	  topology LSP.
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c
index c0574ad..f4a42a6 100644
--- a/isisd/isis_lsp.c
+++ b/isisd/isis_lsp.c
@@ -2154,6 +2154,10 @@
       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));