hnetd: support the ip4mode parameter