Properly read netmask

Read the correct value :)