Added functionality to get ip in CDIR notation and prepare mask before setting ip and mask. We still support ipv4 only for this functionality