Moved the IP stuff to helper.cpp/h.
Dynamic buffer in set_link() instead of the fixed one.