18 lines
417 B
Plaintext
18 lines
417 B
Plaintext
function unet_is_valid_network_v4() {
|
|
return net ~ [
|
|
10.0.0.0/8+
|
|
];
|
|
}
|
|
|
|
function unet_is_valid_network_v4_allnet(){
|
|
if unet_is_valid_network_v4() then return true;
|
|
if is_self_net_inet4() then return true;
|
|
if is_self_net_dn42v4() then return true;
|
|
return false;
|
|
}
|
|
|
|
function unet_is_voalid_net_v6(){
|
|
if is_self_net_inet6() then return true;
|
|
if is_self_net_dn42v6() then return true;
|
|
return false;
|
|
} |