summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2012-09-19 14:27:44 -0700
committerShawn Routhier <sar@isc.org>2012-09-19 14:27:44 -0700
commit67b2cb451b409b6e5a7e3e838c9352243466e795 (patch)
tree657733abd579ed059ad1f8b5965d0f1e65419609 /doc
parent529be52a84e882afb3efcc33e8dd898dd655f0ad (diff)
downloadisc-dhcp-67b2cb451b409b6e5a7e3e838c9352243466e795.tar.gz
[master]
Update the memory leakage debug code to work with v6.
Diffstat (limited to 'doc')
-rw-r--r--doc/devel/debug.dox12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/devel/debug.dox b/doc/devel/debug.dox
index 5feac16d..f9f4696a 100644
--- a/doc/devel/debug.dox
+++ b/doc/devel/debug.dox
@@ -18,4 +18,16 @@ file dhcpd
b lease_reference
@endverbatim
+DEBUG_MEMORY_LEAKAGE may be defined in includes/site.h to enable some debugging
+code to help with debugging memory issues. This code keeps a running total
+of the outstanding memory that has been allocated and a list of the outstanding
+allocations. Both are updated whent he memory is freed. Status information is
+printed when do_packet() and do_packet6() complete processing. The outstanding
+value is expected to grow when new structures are used - for example when a new
+IPv6 lease is created. It is not expected to grow when a structure is reused
+for example when an IPv6 lease is renewed.
+
+DEBUG_RC_HISTORY and DEBUG_RC_HISTORY_EXHAUSTIVELY can also be defined to provide
+more verbose information about reference counts on objects.
+
*/