* We need to acquire references to the interface_address when copying/cloning

the buffer, and we also need to release it when freeing it.
* Adapted patch by Atis: append_cloned_data() now preserves the stored header;
  this is kind of bad, because it will not notice if the original header is
  removed, but this could probably just be documented this way.
* Also print the reference count of the interface addresses.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-08-09 19:03:39 +00:00
parent 719c470746
commit 4af124a15a
2 changed files with 14 additions and 1 deletions
@@ -325,6 +325,8 @@ InterfaceAddress::Dump(size_t index, bool hideInterface)
} else
strcpy(buffer, "-");
kprintf(" destination: %s\n", buffer);
kprintf(" ref count: %" B_PRId32 "\n", CountReferences());
}