int slot1, slot2, found;
SourceRecord *record;
struct SourcePool *pool;
+ char *name;
find_slot(old_addr, &slot1, &found);
if (!found)
}
}
+ name = record->name;
+
/* The hash table must be rebuilt for the new address */
rehash_records();
- LOG(LOGS_INFO, "Source %s replaced with %s",
- UTI_IPToString(&old_addr->ip_addr),
- UTI_IPToString(&new_addr->ip_addr));
+ LOG(LOGS_INFO, "Source %s replaced with %s (%s)", UTI_IPToString(&old_addr->ip_addr),
+ UTI_IPToString(&new_addr->ip_addr), name ? name : "");
return NSR_Success;
}