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.
I suggest we use another variable name to make more clear that this is an int:

    imask = int(netm)