vm: Improve handling of netopts.