"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/names/ip-cache.c" between
etherape-0.9.17.tar.gz and etherape-0.9.18.tar.gz

About: EtherApe is a GNOME/pcap-based graphical network monitor (etherman clone).

ip-cache.c  (etherape-0.9.17):ip-cache.c  (etherape-0.9.18)
skipping to change at line 58 skipping to change at line 58
GSList *to_free; GSList *to_free;
}; };
static gboolean static gboolean
find_expired(gpointer key, gpointer value, gpointer data) find_expired(gpointer key, gpointer value, gpointer data)
{ {
struct ipcache_item *item = value; struct ipcache_item *item = value;
struct prune_ctx *ctx = data; struct prune_ctx *ctx = data;
/* Don't prune items that are still being resolved */ /* Don't prune items that are still being resolved */
if (item->expiry != 0 && item->state != ICS_RESOLVING && item->expiry < ctx->n ow) if (item && item->expiry != 0 && item->state != ICS_RESOLVING && item->expiry < ctx->now)
ctx->to_free = g_slist_prepend(ctx->to_free, item); ctx->to_free = g_slist_prepend(ctx->to_free, item);
return FALSE; /* don't terminate traversal */ return FALSE; /* don't terminate traversal */
} }
static void static void
del_expired(gpointer data, gpointer unused) del_expired(gpointer data, gpointer unused)
{ {
struct ipcache_item *item = data; struct ipcache_item *item = data;
gboolean found = g_tree_remove(ipcache_tree, &item->ip); gboolean found = g_tree_remove(ipcache_tree, &item->ip);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)