[IPV6]: make inet6_register_protosw to return an error code