summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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>
2012-10-29use ustream for process message loggingFelix Fietkau
2012-10-29use FD_CLOEXEC instead of tracking lists of fdsFelix Fietkau
2012-10-19bridge: toggle device present state after freeing a bridge member to ensure ↵Felix Fietkau
that it can be reassigned to a different bridge
2012-10-19free unused devices after cleaning up interfaces to get rid of ↵Felix Fietkau
recently-freed bridge devices
2012-10-19fix device_lock/device_unlock imbalancesFelix Fietkau
2012-09-29system-linux: do not delete kernel-generated ipv6 routes to fix using ↵Felix Fietkau
advertised routes
2012-09-28device.c: use format_macaddr() helper to convert mac addresses to strings, ↵Jo-Philipp Wich
ether_ntoa() does not guarantee a canonical format
2012-09-28utils.c: add helper function to format mac addresses as stringsJo-Philipp Wich
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-09-13interface-ip.c: fix possible null pointer access if calloc() failsJo-Philipp Wich
2012-09-06add optional flag for disabling compiler optimization (debug only)Felix Fietkau
2012-09-06do not prematurely release the main dev on link loss, should fix DHCP NAK ↵Felix Fietkau
handling
2012-09-06clean up and fix system-dummy addr/route messagesFelix Fietkau
2012-08-11system-linux.c: install user routes with RTPROT_STATIC instead of ↵Jo-Philipp Wich
RTPROT_BOOT so that routing daemons like quagga will pick it up
2012-07-12do not recreate or restart external devices on settings changes, apply them ↵Felix Fietkau
at runtime
2012-07-12apply basic device settings for hotplug devices, e.g. mtu and txqueuelenFelix Fietkau
2012-07-12add simple device config params to interface blob attributes, and add a flag ↵Felix Fietkau
that indicates if it is present
2012-07-12expose system_if_apply_settings, make it ignore the mac address for external ↵Felix Fietkau
devices
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