How rdkcentral/wan-manager works
RdkWanManager coordinates physical-interface status and configuration into selected WAN links, builds virtual-interface link/IP stacks, and manages failover and connectivity. Interface Managers report physical state; WAN Manager applies link and IP configuration through RDK components or Linux utilities. Remote configuration is supported through RBUS and WebConfig. DHCP events are queued and processed into interface lease data. The README documents these capabilities; sampled source confirms controller and DHCP event handling, while several subsystem links are based on the documented architecture rather than inspected implementations.
Main entry points: wanmgr_interface_sm.c Interface state machine · wanmgr_dhcp_event_handler.c Lease processing · wanmgr_rdkbus_apis.c RBUS · wanmgr_data.c WAN configuration
Components 23
Configuration interfaces
- RBUS DML
source/TR-181/middle_layer_src/wanmgr_rbus_handler_apis.c - WebConfig
source/WanManager/wanmgr_webconfig.c - TR-181 DML
source/TR-181/middle_layer_src/wanmgr_dml_apis.c - WAN configuration
source/WanManager/wanmgr_data.c
Selection and failover
- Policy controller
source/WanManager/wanmgr_controller.c - Group failover
source/WanManager/wanmgr_wan_failover.c - Selection policies
source/WanManager
WAN lifecycle
- Interface state machine
source/WanManager/wanmgr_interface_sm.c - Interface operations
source/WanManager/wanmgr_interface_apis.c - Network utilities
source/WanManager/wanmgr_net_utils.c - MAP-T / DS-Lite
source/WanManager
Lease and connectivity
- RBUS DHCP events
source/TR-181/middle_layer_src/wanmgr_rbus_dhcp_client_events.c - DHCP event queue
source/TR-181/middle_layer_src/wanmgr_rbus_dhcp_client_events.c - Lease processing
source/WanManager/wanmgr_dhcp_event_handler.c - Network monitor
source/WanManager/wanmgr_network_monitor.c
Platform integration
- RBUS
source/TR-181/middle_layer_src/wanmgr_rdkbus_apis.c - System events
source/WanManager/wanmgr_sysevents.c - Telemetry
source/WanManager/wanmgr_telemetry.c
Other components
- Configuration client
- Interface Managers
- DHCP Manager
- RDK services
- Linux networking
Connections 25
- Configuration client → RBUS DML: configures
- Configuration client → WebConfig: configures
- RBUS DML → TR-181 DML: updates model
- WebConfig → TR-181 DML: updates model
- TR-181 DML → WAN configuration: updates state
- Interface Managers → RBUS: reports status
- RBUS → RBUS DML: delivers events
- Policy controller → WAN configuration: reads config
- Policy controller → Group failover: starts policy
- Group failover → Selection policies: selects group link
- Selection policies → WAN configuration: reads selection data
- Selection policies → Interface state machine: activates interface
- Interface state machine → Interface operations: configures interface
- Interface operations → Network utilities: applies networking
- Interface operations → RDK services: configures services
- Network utilities → Linux networking: runs network setup
- DHCP Manager → RBUS DHCP events: publishes events
- RBUS DHCP events → DHCP event queue: enqueues event
- DHCP event queue → Lease processing: dispatches event
- Lease processing → WAN configuration: updates lease data
- Lease processing → RBUS: publishes updates
- Interface state machine → MAP-T / DS-Lite: configures tunnel
- Network monitor → RBUS: publishes status
- Interface state machine → System events: signals state
- Lease processing → Telemetry: reports lease data