ip*_writer rewritten with inet_pton