yast2 |
modules/IP.ycp |
IP manipulation routines |
|
|
|
global Valid4 () -> string
|
|
- Return value:
|
describe a valid IPv4 address |
global Check4 (string ip) -> boolean
|
|
Check syntax of IPv4 address
- Parameters:
- Return value:
global Check6 (string ip) -> boolean
|
|
Check syntax of IPv6 address
- Parameters:
- Return value:
global Check (string ip) -> boolean
|
|
Check syntax of IP address
- Parameters:
- Return value:
global ToInteger (string ip) -> integer
|
|
Convert IPv4 address from string to integer
- Parameters:
- Return value:
global ToString (integer ip) -> string
|
|
Convert IPv4 address from integer to string
- Parameters:
- Return value:
global ToHex (string ip) -> string
|
|
Converts IPv4 address from string to hex format
- Parameters:
ip |
IPv4 address as string in "ipv4" format |
- Return value:
- Example:
-
IP::ToHex("192.168.1.1") -> "0xC0A80101"
IP::ToHex("10.10.0.1") -> "0x0A0A0001" |
global ComputeNetwork (string ip, string mask) -> string
|
|
Compute IPv4 network address from ip4 address and network mask.
- Parameters:
ip |
IPv4 address |
mask |
netmask |
- Return value:
global ComputeBroadcast (string ip, string mask) -> string
|
|
Compute IPv4 broadcast address from ip4 address and network mask. The
broadcast address is the highest address of network address range.
- Parameters:
ip |
IPv4 address |
mask |
netmask |
- Return value:
|