Network configuration |
modules/Detection.ycp |
Network detection | |
|
|
This module has an unstable interface. |
Detects network settings, using dhcp or sniffing network traffic Detection process:Initial stage:
Final stage:
Used software:
Usage:
Later at the module:
Imports
Includes
Global VariablesGlobal FunctionsLocal Functions |
global
result
->
map
Detection result (in dhcpcd-interface.info format)
global
running
->
boolean
True, if detection is running
local
StartEthInterface ()
->
boolean
Set up the first eth interface, if not already running WATCH OUT, this is the place where modules are loaded
- Return value:
-
true if success
local
StopEthInterface ()
->
boolean
Shut down the eth interface, previously set up by StartEthInterface
- Return value:
-
true if success
local
StartDetection ()
->
boolean
Start detection
- Return value:
-
true if success
local
StopDetection ()
->
boolean
Finish detection
- Return value:
-
true if success
global
Start ()
->
boolean
Start the detection
- Return value:
-
true on success
global
Stop ()
->
boolean
Stop the detection
- Return value:
-
true on success
global
DuplicateIP (string ip)
->
boolean
Duplicate IP detection
- Parameters:
-
ip tested IP address
- Return value:
-
true if duplicate found
- See
-
arping(8), ip(8)
global
ResolveIP (string ip)
->
string
Resolve IP to hostname
- Parameters:
-
ip given IP address
- Return value:
-
resolved host