add test for dtu info packet
parse ip addr as 4-byte int
fix double delete
fix free() on invalid pointer. Fixed #2