Files
bird_config/bird/function/inet.conf
2026-01-28 12:37:15 +08:00

7 lines
244 B
Plaintext

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;
}
}