So, if(config.net.setup != NS_DHCP) is followed by if(config.net.setup & NS_DHCP)? And that's even followed by a dialog asking for dhcp?