Ports Aliases. |
modules/PortAliases.ycp |
Definition of Port Aliases. | |
|
|
This module has an unstable interface. |
Global Definition of Port Aliases for services taken from /etc/services.
/etc/services are defined by IANA http://www.iana.org/assignments/port-numbers.
This module provides full listing of port aliases (supporting also multiple
aliases like "http", "www" and "www-http" for port 80).
Results are cached, so repeated requests are answered faster.
Imports
Global Functions |
global
IsAllowedPortName (string port_name)
->
boolean
Function returns if the port name is allowed port name (or number).
- Parameters:
-
port_name
- Return value:
-
if allowed
global
AllowedPortNameOrNumber ()
->
string
Function returns string describing allowed port name or number.
- Return value:
-
with description
global
GetListOfServiceAliases (string port)
->
list <string>
Function returns list of aliases (port-names and port-numbers) for requested port-number or port-name. Also the requested name or port is returned.
- Parameters:
-
port
- Return value:
-
[string] of aliases
global
IsKnownPortName (string port_name)
->
boolean
Function returns if the requested port-name is known port. Known port have an IANA alias.
- Parameters:
-
port_name
- Return value:
-
if is known
global
GetPortNumber (string port_name)
->
integer
Function returns a port number for the port name alias
- Parameters:
-
port_name