Add `last_netmask` public function

Related to issue #47