better code for softbank's duplicate IP/mask