Unknown YCP Module |
|
This module has an unstable interface. |
Imports
Includes
Global VariablesGlobal FunctionsLocal Functions |
Info:
File: modules/NetHwDetection.ycp
Package: Network configuration
Summary: Network detection
Authors: Michal Svec
Detects network settings, using dhcp or sniffing network traffic
Detection process:
Initial stage:
- hardware detection
- load kernel modules (if not already active *1)
- set up interface (if not already set up *2)
- run detection
Final stage:
- read detection data
- shut down interfaces (if set up before, see *2)
- remove kernel modules (if loaded before, see *1)
Used software:
- dhcpcd(8)
- netprobe(8) (currently not, originally by Caldera, license unclear)
Usage:
- Detection::Start() somewhere at the start of installation
Later at the module:
- if(Detection::running) Detection::Stop();
- string gw = Detection::result["GATEWAY"]:"";
global
result
->
map
Detection result (in dhcpcd-interface.info format)
global
running
->
boolean
True, if detection is running
local
LoadNetModules ()
->
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
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