Adding support for masked target (e.g. 192.168.12.0/24)