summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
AgeCommit message (Collapse)Author
2015-05-19ipv6: use kernel >= 3.14 handling of offlink-addressesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2015-01-19netifd: Make interface identifier of delegated IPv6 address configurableHans Dedecker
The ip6ifaceid UCI interface parameter makes the interface identifier of the delegated IPv6 address configurable. The parameter can have the following values: eui64 : Interface identifier is generated from the interface's MAC address random : Interface identifier is generated randomly fixed value : Interface identifier is a fixed value (eg ::1:2) The latter is the default value with a fixed value of ::1 for backwards compatibility Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Joeri Barbarien <joeri.barbarien@gmail.com>
2014-10-24netifd : Apply interface metric on subnet routes when reloading ipHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-09-08ipv6: work around kernel on-link handling issueSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-08-13ipv6: assign prefixes with length <64 with /64 on-link routesSteven Barth
on-link routes for prefixes bigger than /64 make no sense and might confuse some users Signed-off-by: Steven Barth <steven@midlink.org>
2014-08-05netifd: fix incorrect number of bytes memset in clear_if_addrHans Dedecker
Fix clear_if_addr for IPv6 addresses as an incorrect number of bytes were memset due to wrong sizeof argument Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-20interface: don't store table id in route if the default table is usedSteven Barth
Use system_is_default_rt_table() to test whether the resolved routing table is the default one, in this case do not apply the table attribute to the route object. This is needed for backwards compatibility - only routes using a non-default table shall report it in the ifstatus output. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-06-18netifd: Route type supportHans Dedecker
Patch adds route type support in netifd by means of the route parameter type. By default the route type was unicast; the parameter adss support for local/broadcast/multicast/unicast routes which will be put into the appropriate routing table. If route type parameter is unset the route type will be unicast as before. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-10Add support for onlink-flags for IPv4 routesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-05-09netifd: Effectively apply configured route mtuHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-05-09netifd: Remove useless route table parameter check in update_proto_routeHans Dedecker
Not necessary since route table parameter is used as key element in route_cmp Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-05-09netifd: Don't assume routes are always applied in all casesHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-04-29interface-ip: fix misuse of IN6_IS_ADDR_LINKLOCAL on a netifd specific unionFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-26netifd: Check rt_table parameter when comparing routesHans Dedecker
Allows to add identical routes in different routing tables Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-04-24netifd: Set prefix assignment enabled if the prefix adress can be installedHans Dedecker
No need to install policy routes if the prefix address cannot be installed; clean up of the policy routes and the prefix address only needs to happen when the prefix assignment was active. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-04-24netifd: fix IPv6 Link-local DNS serverUlrich Weber
interface name must be added to Link-local IPv6 DNS servers, otherwise they are unusable. Signed-off-by: Ulrich Weber <uw@ocedo.com>
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