summaryrefslogtreecommitdiffstats
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
commitf44a75fd114e30a9e3d8468246fec1e554ff4bf2 (patch)
tree48acc4e15b9f0ed0903ae99a4fad61b115ce887d /isisd/isis_lsp.c
parent0eb934446d89384c3f70008a91a91af732f98ef4 (diff)
downloadquagga-f44a75fd114e30a9e3d8468246fec1e554ff4bf2.tar.bz2
quagga-f44a75fd114e30a9e3d8468246fec1e554ff4bf2.tar.xz
* 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));