Refactoring myntcd_ip... functions.
TODO: Do the same with the myntcd_top... and myntcd_iprange... functions