Fixed masking logic for:
  masked ip range forwarding
  masked rule overlap detection
  masked rule overwrite detection