summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2013-04-05Maintain config order of ip rules unless user explicitely provides priorityJo-Philipp Wich
2013-04-05fix route sorting orderFelix Fietkau
New sorting order: - prefix length (descending) - metric (ascending) - flags - target address Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-04-05Add myself to header for IPv6 workSteven Barth
2013-04-05Fix system_resolve_rt_table() stub in system-dummy.cJo-Philipp Wich
2013-04-05Incorperate route table into avl keyJo-Philipp Wich
2013-04-04Expose route table if route is not in the main tableJo-Philipp Wich
2013-04-04Add support for ip rulesJo-Philipp Wich
2013-04-04Implement support for route / route6 table attributeJo-Philipp Wich
2013-04-03Rewrite IPv6 prefix assignmentSteven Barth
2013-03-19Fix IPv6 RDNSS writing to resolv.conf (buffer was too short)Steven Barth
2013-03-04fix libnl detectionThomas Gstädtner
2013-02-19Only update resolv.conf if changed (avoid logspam)Steven Barth
2013-02-11prefer to link against libjson-c over libjson (the new library name in git ↵Felix Fietkau
versions of json-c) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-02-10device: protect device event broadcast against simultaneous deletions of ↵Felix Fietkau
multiple receivers in the callback (can happen with aliases) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-02-10proto: default to 128 instead of the "netmask" option for ipv6 addressesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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-29proto-shell: use the new network.interface objectFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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-29fix cleaning up interface state for reloadFelix Fietkau
Do not clean up config related state or interface dependencies Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-29Add deprecation for static IPv6 prefixesSteven Barth
2013-01-29IPv6 prefixes: conform to RFC 6204 requirement L13Steven Barth
2013-01-28alias: set ifindex on alias device to fix setting addresses/routesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-22alias: if the underlying device changes (or goes away), set the device ↵Felix Fietkau
present status to false to make its users shut down Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-22Don't segfault with an unset ula_prefixSteven Barth
2013-01-21Fix segfaults in prefix handlingSteven Barth
2013-01-20alias: rework device updatesFelix Fietkau
Apply immediately if alias device is not claimed, otherwise defer until release Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-16alias: use layer 3 device instead of main deviceSteven Barth
2013-01-15Fix a race-condition in prefix-assignmentSteven Barth
2013-01-15interface-ip: use calloc_a to get rid of an extra allocationFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-15interface-ip: replace prefix_assignment_cmp with avl_strcmpFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-15remove commented out TODO itemsFelix Fietkau
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-15add mac os x compat #define for in6_addr s6_addr32Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-13system-linux.c: use uin64_t datatype to read and store interface statistics, ↵Jo-Philipp Wich
pass values as u64 blob type
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>
2013-01-05proto-shell: use calloc_aFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-05utils.h: get rid of the duplicate BUILD_BUG_ON definition, use the one from ↵Felix Fietkau
libubox Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-31use calloc_a for interface error allocationsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-31interface: do not clear errors after an interface is marked as down, the ↵Felix Fietkau
user might like to read them Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-29log: fix processing of incomplete linesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-17duplicate error subsystem and code for interface errors to prevent accessing ↵Felix Fietkau
stale data Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-17netifd: stop using jshn_appendFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-13rewrite resolv.conf after any interface state change (not just up)Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-05rewrite resolv.conf after interface up setting updatesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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-30alias: add (and call) a check_state function to fix dynamically creating ↵Felix Fietkau
aliases for interfaces that are already up Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-30fix container_of for the log ustreamFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-30move uloop_process_delete call to get rid of an unnecessary checkFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-30proto-shell: ensure that the teardown timeout gets killedFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-30log: the ustream notify_state callback is now optional, remove the stubFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>