yast2 |
modules/Netmask.ycp |
| Netmask manipulation routines |
|
|
|
|
|
global Check4 (string netmask) -> boolean
|
|
Check the IPv4 netmask
Note that 0.0.0.0 is not a correct netmask.
- Parameters:
- Return value:
|
global Check6 (string netmask) -> boolean
|
|
Check the IPv6 netmask
- Parameters:
- Return value:
|
global Check (string netmask) -> boolean
|
|
Check the netmask
- Parameters:
- Return value:
|
global FromBits (integer bits) -> string
|
|
Convert netmask in bits form (20) to netmask string (255.255.240.0)
- Parameters:
|
bits |
number of bits in netmask |
- Return value:
|
global ToBits (string netmask) -> integer
|
|
Convert IPv4 netmask as string (255.255.240.0) to bits form (20)
- Parameters:
|
netmask |
netmask as string |
- Return value:
|
|
number of bits in netmask; 32 for empty string |
|