replaced $ip_cnet with $ip_addr; using net_addr gem