Revert "extendIPAddress with NetworkAddress and maskLength."

This reverts commit 2643ca8d63ca547dc34ff66246cbcf47d71f79a0.
Revert "Revert "extendIPAddress with NetworkAddress and maskLength.""

This reverts commit 57e20835bf042b7540f2d48807585225be86d9cb.