function is_self_net() { case net.type { NET_IP4: return net ~ is_inet_self_IPv4; NET_IP6: return net ~ is_inet_self_IPv6; else: print "is_inet_prefix: unexpected net.type ", net.type, " ", net; return false; } }