summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
AgeCommit message (Collapse)Author
2014-03-21ubus: use list_empty() instead of the compat wrapperFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-20ubus: fix displaying interface data itemsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-03-11Revert "ubus events: don't incorrectly announce an interface as being up"Felix Fietkau
Made obsolete by b114b86c70766f67f503077ad1de013c17fbf366 This reverts commit 4d1a597f65bbb49aa843112812d5ca929478c706.
2014-03-05ubus events: don't incorrectly announce an interface as being upSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-02-17wireless: add a "get_validate" methode to ubusJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-02-14netifd : Fix ubus route src mask printingHans Dedecker
Fix printing of route src mask attribute when it contains 3 digits Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-01-17Add indicator-flags to ubus and hotplug update-eventsSteven Barth
2013-12-12Set dynamic interface flag after adding them so the version is preservedSteven Barth
2013-12-08netifd: Don't export default route via UBUS when disabledHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2013-12-08netifd: Export ip4table/ip6table via UBUSHans Dedecker
Export ip4table/ip6table parameters via UBUS to facilitate route inspection and usage by other applications Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2013-11-29wireless: add support for global up/down commandFelix 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-11-27IPv6: add class support to regular IPv6 addressesSteven Barth
2013-10-30IPv6: Export delegation setting via ubusSteven Barth
This allows foreign prefix delegators to quickly distinguish between managed and unmanaged prefixes. Signed-off-by: Steven Barth <steven@midlink.org>
2013-10-22add helper function for adding/removing devices to interfacesFelix 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-18Add source-restricted routesSteven Barth
2013-10-17Add protocol update notifications and hotplug legacy callsSteven Barth
2013-10-17Add ubus function to create nested interfacesSteven Barth
2013-10-17Add ubus methods for global interface statusSteven Barth
2013-05-30IPv6: reorganize prefix assignmentSteven Barth
* put parameters in a more suitable place * add support for prefix classes
2013-05-13Add support for IPv6 and interface target-routes & dependenciesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-04-04Expose route table if route is not in the main tableJo-Philipp Wich
2013-04-03Rewrite IPv6 prefix assignmentSteven Barth
2013-02-01Improved IPv6 featuresetSteven Barth
* Fix reloading of ula-prefixes * Added support for temporary addresses and routes * Added support for offlink addresses * Improved status-output for assigned prefixes
2013-01-29ubus: add a network.interface object to access network.interface.* methods ↵Felix Fietkau
without racing wrt. object add/remove Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-15Initial IPv6 prefix supportSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-01-06fix removal of unknown deviceNathan Hintz
Netifd will crash if an attempt is made to remove a device that is not known to netifd. For instance: ubus call network.interface.lan remove_device "{ \"name\": \"xxx\" }" Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
2012-12-03fix error checking of asprintfFrank Meerkötter
see man asprintf [...] RETURN VALUE When successful, these functions return the number of bytes printed, just like sprintf(3). If memory allocation wasn't possible, or some other error occurs, these functions will return -1, and the contents of strp is undefined. Signed-off-by: Frank Meerkötter <frank@meerkoetter.org>
2012-10-29use FD_CLOEXEC instead of tracking lists of fdsFelix Fietkau
2012-10-19fix device_lock/device_unlock imbalancesFelix Fietkau
2012-09-13ubus.c: now that disabled routes are in the inactive subtable it makes no ↵Jo-Philipp Wich
sense to expose the enabled attribute anymore
2012-09-13ubus.c: move disabled routes, ips, dns server into an "inactive" subtableJo-Philipp Wich
2012-07-12apply basic device settings for hotplug devices, e.g. mtu and txqueuelenFelix Fietkau
2012-07-12ensure hotplug devices are marked as present in the add path - they are not ↵Felix Fietkau
cleaned up if they have config settings attached to them
2012-07-12fix device_lock/device_unlock imbalance in the hotplug device handlingFelix Fietkau
2012-07-05fix ifname for alias+vlan chainsFelix Fietkau
2012-06-29ubus.c: expose metric and mtu values if applicableJo-Philipp Wich
2012-06-29ubus.c: expose route enabled stateJo-Philipp Wich
2012-06-07device: add support for deferring bringup of devicesFelix Fietkau
2012-05-31add an ubus method for dumping available protocol handlersFelix Fietkau
2012-05-31ubus: show proto handler in interface statusFelix Fietkau
2012-05-29netifd: reconnect to ubus if the connection is lostFelix Fietkau
2012-05-20export dns server and search list in the ubus interface statusFelix Fietkau
2012-05-19ubus: split ipv4 and ipv6 address in interface statusFelix Fietkau
2012-05-04add copyright headersFelix Fietkau
2012-05-04add a ubus interface to dynamically create host routes to a particular ip ↵Felix Fietkau
address, returns the interface that the route goes through
2012-04-12ubus: split address from mask in interface statusFelix Fietkau
2012-03-23add support for attaching arbitrary state data to interfacesFelix Fietkau