mask.c // print_ip, caculate mask length into ip addr