function is_self_net() { case net.type { NET_IP4: return net ~ IS_SELF_NET_inet4; NET_IP6: return net ~ IS_SELF_NET_inet6; else: print "is_dn42_prefix: unexpected net.type ", net.type, " ", net; return false; } }