Felix Fietkau
|
d095bf24cf
config: use the new uci_blob library code
|
11 years ago |
Felix Fietkau
|
b35fd5d578
device: use safe_list for device event, fixes some hang issues
|
11 years ago |
Felix Fietkau
|
cf90523881
device: protect device event broadcast against simultaneous deletions of multiple receivers in the callback (can happen with aliases)
|
11 years ago |
Felix Fietkau
|
51b3f21fef
alias: use a callback for managing device presence state, track alias deps in a separate list to avoid recursion issues
|
12 years ago |
Felix Fietkau
|
4bf10a76e0
split alias support into a separate source file for better readability
|
12 years ago |
Felix Fietkau
|
6094417533
fix ifname for alias+vlan chains
|
12 years ago |
Felix Fietkau
|
ad272ffe7e
device: export device_broadcast_event
|
12 years ago |
Felix Fietkau
|
1850d0350d
device: make device_set_disabled inline, add device_set_deferred
|
12 years ago |
Felix Fietkau
|
bfe5db1ea8
add copyright headers
|
12 years ago |
Felix Fietkau
|
1c7bff698e
parse tunnel devices from config
|
12 years ago |
Felix Fietkau
|
85c3eb9af8
device: differentiate between DEV_CONFIG_APPLIED (no device up/down), and DEV_CONFIG_RESTART (device restart)
|
12 years ago |
Felix Fietkau
|
677f975452
save and restore previous device settings when overriding them via config
|
12 years ago |
Felix Fietkau
|
91fa29a0d1
move device settings to a separate struct
|
12 years ago |
Felix Fietkau
|
395891b0e4
allow devices to be disabled through a config option
|
13 years ago |
Felix Fietkau
|
a6baf95e70
fix use-after-free on device free codepath due to recursion issues, and fix dev->parent refcounting issues
|
13 years ago |
Felix Fietkau
|
b6d7a8bc98
add a hotplug op for preparing an interface bridge so that it's ready when an external process adds interfaces
|
13 years ago |
Felix Fietkau
|
10741b4974
recognize stacked interfaces (e.g. dsa) and handle their dependencies
|
13 years ago |
Felix Fietkau
|
fb0e413807
do not clear device state for devices created by proto-up with address-external set
|
13 years ago |
Felix Fietkau
|
d16871c7a5
rework device hotplug handling some more, add device_lock/device_unlock to prevent use-after-free bugs
|
13 years ago |
Felix Fietkau
|
f8276b9b14
apply device settings to simple devices with config specified from the interface section (legacy format compatibility), but only if no other config was provided
|
13 years ago |
Felix Fietkau
|
ab4a8a357b
add support for alias devices, which are activated based on hotplug events containing the real device name
|
13 years ago |
Felix Fietkau
|
39b97d1747
directly pass the device name to the device create function
|
13 years ago |
Felix Fietkau
|
d64c608820
implement a new ubus object "network.device", add a method for dumping detailed device information
|
13 years ago |
Felix Fietkau
|
37441269fb
prevent deletion devices that are part of the current configuration
|
13 years ago |
Felix Fietkau
|
cd51d94890
rename a variable for clarity
|
13 years ago |
Felix Fietkau
|
5bf6467af8
rename check_device_state to device_check_state
|
13 years ago |
Felix Fietkau
|
f6b38cb7c9
more changes for config reload handling
|
13 years ago |
Felix Fietkau
|
2cd93d4c17
use a common function for creating devices that avoids creating duplicates
|
13 years ago |
Felix Fietkau
|
818abd9f2f
move ip related functions and data structures to a separate header file
|
13 years ago |
Felix Fietkau
|
5f739f10e9
improve interface for cleaning up unused devices
|
13 years ago |