moeglichkeit für manuelles löschen des IP caches eingebaut.
Change-Id: I9c482639776a76fb28849921af4bffde6a25d561
diff --git a/p/daemon/iplookup.c b/p/daemon/iplookup.c
index 0207b7f..85425f5 100644
--- a/p/daemon/iplookup.c
+++ b/p/daemon/iplookup.c
@@ -197,6 +197,14 @@
// DEBUGGING CODE
+/* wenn der dienst lange nicht lief, sind viele werte nicht zu
+ * gebrauchen, manueller aufruf loescht alle werte
+ */
+public void cleanup() {
+ ipmap = m_allocate( 0, 4 );
+ LOG( "hard erase ip cache");
+}
+
#if 0
public void dump( string key, mixed* data ) {
printf( "%s: %s (%s) s=%d bis %d\n", key, data[0], data[1],