summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
AgeCommit message (Collapse)Author
2014-03-11netifd: Assign interface metric to route metric when route is createdHans Dedecker
Interface metric needs to be assigned to the route metric parameter at route creation time. Otherwise if the interface metric is different from 0 route_cmp will wrongly conclude the routes are different. In this case the route will be added/deleted and could end up with the route missing in the kernel depending on the add/delete order. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-02-26Don't always assume routes & addresses are appliedSteven Barth
Actually check netlink return values and remember failure. Signed-off-by: Steven Barth <steven@midlink.org>
2014-02-16IPv6: work around dangling routes kernel issueSteven Barth
2014-02-14Fix source-restrictions of routes when no mask was providedSteven Barth
2014-01-20Don't add unnecessary NOP policy rulesSteven Barth
2014-01-17Add indicator-flags to ubus and hotplug update-eventsSteven Barth
2013-12-11IPv6: Remove IPv6 source-routing workaround (kernel is fixed)Steven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-12-08netifd: Routing table parameter needs to be checked in route updateHans Dedecker
Routing table parameter needs to be checked in interface_update_proto_route; a route which has an identical nexthop but a different routing table needs to be deleted and added in the correct routing table. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2013-11-27IPv6: add class support to regular IPv6 addressesSteven Barth
2013-10-22utils: add a function for checking if a process given by pid is still aliveFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-18Add option "delegate" to toggle prefix delegationSteven Barth
2013-10-18Add source-restricted routesSteven Barth
2013-10-01Don't delete / readd IP addresses when only their lifetime has changedSteven Barth
2013-07-16IPv6: fix prefix assignment with continuous hintsSteven Barth
2013-06-17IPv6: Reverse assignment sorting orderSteven Barth
2013-06-17IPv6: Satisfy unhinted assignments ordered by prefix lengthSteven Barth
2013-06-10config: use the new uci_blob library codeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-03IPv6: Improve source-routing policiesSteven Barth
* Set a default policy-failed rule per prefix (based on a patch by Jonas Gorski) * Use input interface in addition to source for filtering * Avoid duplicate routing policies
2013-05-31IPv6: fix device_prefix vlist_key to not include prefix classSteven Barth
2013-05-30IPv6: reorganize prefix assignmentSteven Barth
* put parameters in a more suitable place * add support for prefix classes
2013-05-30IPv6: Log a warning if users have prefixes but haven't assigned themSteven Barth
2013-05-29IPv6: remove ULA prefix-trigger (unused)Steven Barth
2013-05-28IPv6: fix wrap-arounds in address lifetimesSteven Barth
2013-05-17Add option to define target routing table for protocol routes.Steven Barth
This unifies source-routing for both IPv6 and IPv4 (default off). Based on a patch by Kristian Evensen
2013-05-13IPv6: Set loopback-policy for output trafficSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-05-13Add support for IPv6 and interface target-routes & dependenciesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-05-11IPv6: Use source-routing to allow multi-wanSteven Barth
2013-04-19IPv6: Try harder to assign prefix partsSteven Barth
2013-04-09IPv6: Remove local ULA if there is an external oneSteven Barth
2013-04-09Fix comparisation conditions in route_cmp()Jo-Philipp Wich
2013-04-05Fix a memory corruption when updating IPv6 prefixesSteven Barth
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-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-02-19Only update resolv.conf if changed (avoid logspam)Steven 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-29Add deprecation for static IPv6 prefixesSteven Barth
2013-01-29IPv6 prefixes: conform to RFC 6204 requirement L13Steven Barth
2013-01-22Don't segfault with an unset ula_prefixSteven Barth
2013-01-21Fix segfaults in prefix handlingSteven 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-15Initial IPv6 prefix supportSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2012-12-05rewrite resolv.conf after interface up setting updatesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-09-13interface-ip.c: fix possible null pointer access if calloc() failsJo-Philipp Wich
2012-07-05memset the on-stack device route when clearing local subnet routesFelix Fietkau
2012-06-29interface-ip.{c,h}: add new flag DEVROUTE_MTU and set it for per-route mtu ↵Jo-Philipp Wich
overrides