Got rid of .c includes in test_hcp_net, and separated net_sim parts (and hcp_io stubs) to net_sim.h.
Got rid of list_for_each's and replaced them with list_for_each_entry.
Also moved some 'general' pa mocked stuff to net_sim.h.
Using prefix_cmp instead of memcmp.
Made MAXIMUM_PROPAGATION_DELAY configurable by whoever includes net_sim.h
First version of test_hcp_pa (which does not do much yet).
Using L_PREFIX in pa.c, and got rid of the sketchy prefix_ntop variants and replaced them with two macros (PREFIX_NTOP / PREFIX_REPR).
Starting iid numbering from 1 - 0 is reserved as 'unknown'.
Got rid of more list_for_eachs in net_sim.
Moved hex_repr stuff to tlv.h
Some more testware. Got stuck when delegated prefix list flushing did not occur. Have to continue debugging.
Made TLV updates more consistent - now removing first and adding afterwards.
Fixed hcp uninit order to ~follow what actually happens underneath (update_link refers to node -> killing nodes first is bad idea).
Added skeleton pa case's start.
Fixed net_sim to run only until criteria becomes nontrue (and not advance once more beyond that).
Even more unint order tuning.
Fixed too lazy updating behavior, as well as wrong add/delete flag (sigh, their semantics are opposites on hcp and pa :p).
Better debug messages + some test case development further.
Merge branch 'master' of github.com:sbyx/hnetd
Got rid of some module-specific L_PREFIX instances, cough cough.