Properly read netmask
Merge pull request #7 from peterbourgon/fix-netmask

Properly read netmask