summaryrefslogtreecommitdiffhomepage
path: root/config.c
AgeCommit message (Collapse)Author
2014-06-11Reorder alfabetically device type matching as they are growing in numberGioacchino Mazzurco
Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
2014-06-11Add vlan 802.1q/802.1ad support as netifd devicesGioacchino Mazzurco
At moment netifd supports just 802.1q vlan, you can configure them using a concise but "hacky" syntax using an interface config section, with this patch netifd acquire the capability of configuring 802.1ad and 802.1q vlan using config device sections, so you can define a vlan device plus interface with something like this: config device 'test' option type '8021ad' option name 'test' option ifname 'eth0' option vid '1000' config interface 'testif' option ifname 'test' option proto 'none' option auto '1' old syntax for 802.1q keeps working so no retrocompatibility problems, to keep retrocompatibility means also that user must not use name/ifname like eth0.2 for devices declared with the new style because this would trigger the "old style" when interface config section is parsed Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
2014-04-21config: add support for disabling interfacesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-31config: ignore config parser errorsFelix Fietkau
This helps with keeping routers reachable when there are typos in the network config. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-19uci: Allow setting the UCI config path on the command lineMatthias Schiffer
Add a -c switch which allows setting an alternative UCI path instead of using the libuci default. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2013-11-30wireless: show the virtual interface section name in wireless statusFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-29add initial support for handling wireless devices via scriptsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19interface: rework code to get rid of arbitrary IFNAMSIZ limitation for ↵Felix Fietkau
interface names Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19interface: remove "dynamic" argument for interface_init, add the ↵Felix Fietkau
interface_set_dynamic function instead Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-17Add ubus function to create nested interfacesSteven Barth
2013-10-03device: add macvlan supportFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2013-06-10config: use the new uci_blob library codeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-10config: replace config_memdup with blob_memdup from libuboxFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-04-04Add support for ip rulesJo-Philipp Wich
2013-04-03Rewrite IPv6 prefix assignmentSteven Barth
2013-01-15Initial IPv6 prefix supportSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2012-10-19free unused devices after cleaning up interfaces to get rid of ↵Felix Fietkau
recently-freed bridge devices
2012-07-12add simple device config params to interface blob attributes, and add a flag ↵Felix Fietkau
that indicates if it is present
2012-05-23add interface alias supportFelix Fietkau
2012-05-04add copyright headersFelix Fietkau
2012-03-15parse tunnel devices from configFelix Fietkau
2012-02-03update the interface list version on config reload, fixes removing old ↵Felix Fietkau
interfaces
2011-12-04fix use-after-free on config reloadFelix Fietkau
2011-11-08do not hardcode config package in config_init_package()Felix Fietkau
2011-10-19add support for configuring static routesFelix Fietkau
2011-10-19minor cleanupFelix Fietkau
2011-10-19rename config_init_interfaces to config_init_allFelix Fietkau
2011-10-19remove the argument to config_init_interfacesFelix Fietkau
2011-10-19rework device hotplug handling some more, add device_lock/device_unlock to ↵Felix Fietkau
prevent use-after-free bugs
2011-10-19apply device settings to simple devices with config specified from the ↵Felix Fietkau
interface section (legacy format compatibility), but only if no other config was provided
2011-10-07config: remove unused variable (fix cc error)Steven Barth
2011-10-06only free unused devices after the final config initFelix Fietkau
2011-10-06prevent deletion devices that are part of the current configurationFelix Fietkau
2011-10-05rename a variable for clarityFelix Fietkau
2011-10-05add better debug messages for interface create/remove/updateFelix Fietkau
2011-10-04rework debugging code, add debugging levelsFelix Fietkau
2011-10-03do not memcmp padding bytes in config_diffFelix Fietkau
2011-10-03more changes for config reload handlingFelix Fietkau
2011-10-03add functions for checking for config differencesFelix Fietkau
2011-10-03force the uci savedir for the dummy variantFelix Fietkau
2011-10-03use a common function for creating devices that avoids creating duplicatesFelix Fietkau
2011-10-02manage interfaces via vlistFelix Fietkau
2011-10-02only override the uci conf dir in dummy modeFelix Fietkau
2011-09-07move more stuff out of netifd.hFelix Fietkau
2011-09-05make config_init_devices staticFelix Fietkau
2011-09-05constifyFelix Fietkau
2011-09-05add config state trackingFelix Fietkau
2011-09-05improve interface for cleaning up unused devicesFelix Fietkau
2011-09-04remove the uci dependency from protocol handlersFelix Fietkau
2011-09-04fix compiler warningsFelix Fietkau