implement support for masked IP addresses