Fixed an incorrect commit. Took care of subnet mask parsing.

Signed-off-by: Madhu Venugopal <madhu@socketplane.io>