Added paranoid tests for tlv_for_each_attr.
Provided tlv_for_each_in_buf which is truly paranoid, and using it in tlv_for_each_attr as well.
Added first version of pruning algorithm.
Refactored hash to use custom struct so code looks cleaner. Pruning seems to work now too, but nio testsuite blows up in odd ways.
Fixed warning (bit incorrect use of container_of, although it DID work fine in this case).
Removed spurious memset (we clear structures in hcp_init now).
Added disable_prune flag to hcp struct, and using it in single-node unit test. Also found a bug (kept expiring OWN node if it had no TLVs).
Merge branch 'master' of github.com:sbyx/hnetd