Support bitmask notation for address netmask

Added support for bitmask notation for the netmasks when setting src/dst addresses (x.x.x.x/16).
Expanded address test to match the change.
Would not this be more readable as:

    nmask = (1 << imask) - 1