summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
AgeCommit message (Collapse)Author
2014-03-11netifd: Fix bridge MTU setting when a bridge member is addedHans Dedecker
Reapply bridge mtu setting as adding a bridge member will override the bridge mtu in the kernel Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-02-27netifd: Link layer state awareness support on device levelHans Dedecker
Device layer is informed by netlink events regarding the link layer status. Link layer status change results in a DEV_EVENT_LINK_UP/DEV_EVENT_LINK_DOWN broadcast event for a given device. Depends on uloop error callback patch. Solves issue reported in https://dev.openwrt.org/ticket/14590 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Acked-by: Karl Vogel <karl.vogel@gmail.com>
2014-02-16Work around warn_unused_result in recent gcc/libcSteven Barth
2014-02-14netifd : Disable netlink auto ackHans Dedecker
Disable netlink auto ack when doing a delete in the get callback handler to avoid race conditions resulting into stalled message on the netlink socket. Solves issue reported in https://dev.openwrt.org/ticket/14590 Signed-off-by: Karl Vogel <karl.vogel@gmail.com> Acked-by: Hans Dedecker <dedeckeh@gmail.com>
2013-12-14Revert "netifd: Link layer state support on device level"Felix Fietkau
This reverts commit c439b52400978dd3799c66e1f632ee68d2c7c9eb.
2013-12-11IPv6: Remove IPv6 source-routing workaround (kernel is fixed)Steven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-12-08netifd: Link layer state support on device levelHans Dedecker
Patch implements link layer state awareness (aka carrier detection) in netifd on device level. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2013-12-08Tunnel don't fragment bit configurableHans Dedecker
Make tunnel don't fragment bit configurable via UCI Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2013-12-08netifd: Apply tunnel MTUHans Dedecker
Tunnel MTU is applied according to the tunnel MTU UCI parameter Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
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-03device: add macvlan supportFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Jo-Philipp Wich <jow@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-28IPv6: fix address-lifetime overflows on 64-bit architecturesSteven Barth
2013-05-27Move iprule flushing to the init function to make the timing predictableJo-Philipp Wich
2013-05-27Move initial iprule flushing to system_add_iprule() to not collide with ↵Jo-Philipp Wich
generic multiwan support
2013-05-13Use logical instead of physical name for tunnel underlying link.Steven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-05-13Add support for IP in IPv6 tunnels (DS-Lite)Steven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2013-05-11IPv6: Use source-routing to allow multi-wanSteven Barth
2013-04-23set default bridge priority to 0x7FFFJo-Philipp Wich
2013-04-23add bridge priority optionNiels Boehm
[netifd] add bridge priority option Using the bridge priority (lower numbers are higher in the hierarchy), one can ensure that the router is chosen as root bridge in a setup with spanning tree protocol. For instance, one can set the priority of network lan to 32767, causing the router to win over all directly and indirectly connected nodes that have a default priority of 32768. The reason for doing that is that otherwise it has a default priority 32768 as well and any other connected node could win and get root bridge. In a home setup, those nodes are often desktop or laptop boxes and get switched off from time to time. As a consequence, root bridges vanish or new root bridges get chosen relatively often, resulting in frequent topology changes to the STP network. While the new topology has not settled, packets can get lost, causing noticeable interruptions of network traffic. Setting the router's bridge on a lower numbered priority (and thus higher in the selection hierarchy) solves the problem in the vast majority of the cases by ensuring that the device that is most likely powered on 24/7 gets chosen as root and prevents topology changes. Signed-off-by: Niels Boehm <blubberdiblub@gmail.com>
2013-04-05Maintain config order of ip rules unless user explicitely provides priorityJo-Philipp Wich
2013-04-05Add myself to header for IPv6 workSteven Barth
2013-04-04Add support for ip rulesJo-Philipp Wich
2013-04-04Implement support for route / route6 table attributeJo-Philipp Wich
2013-01-15Initial IPv6 prefix supportSteven Barth
Signed-off-by: Steven Barth <steven@midlink.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
2012-09-29system-linux: do not delete kernel-generated ipv6 routes to fix using ↵Felix Fietkau
advertised routes
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-12expose system_if_apply_settings, make it ignore the mac address for external ↵Felix Fietkau
devices
2012-07-11system-linux.c: fix sysctl settingJo-Philipp Wich
The system_set_dev_sysctl() function erroneously used the value instead of the device name to format the sysctl path, this change corrects that.
2012-07-05avoid setting device presence for wifi interfaces via hotplug messagesFelix Fietkau
2012-07-05zero-initialize the ifreq when adding/removing bridge member interfacesFelix Fietkau
2012-07-05zero-initialize the ifreq when setting interfaces up or downFelix Fietkau
2012-06-21add a #ifdef around the 6rd code to make it compile with older kernels that ↵Felix Fietkau
do not have 6rd support
2012-06-18Add 6rd options to tunnel spec.Stéphan Kochen
This patch adds support for setting the 6rd tunnel options. These are the same options normally specified with `ip tunnel 6rd ...`. Signed-off-by: Stéphan Kochen <stephan@kochen.nl>
2012-06-14ignore mac80211 devices specified in /etc/config/networkFelix Fietkau
2012-05-20replace the kernel's implicit network routes if the metric is setFelix Fietkau
2012-05-14system-linux: set the point to point address if presentFelix Fietkau
2012-05-04add copyright headersFelix Fietkau
2012-04-15system-linux: fix system_rtnl_call() return codeFelix Fietkau
2012-03-15always create device routesFelix Fietkau
2012-03-15system-linux: add functions for adding/removing ip tunnels (currently only ↵Felix Fietkau
sit supported)
2012-03-09make route metrics default to 0Felix Fietkau
2012-03-05system-linux: ignore errors in system_bridge_addif if the interface is ↵Felix Fietkau
already in the specified bridge
2012-02-28fix mac address handlingFelix Fietkau
2012-02-26move broadcast address handling to the coreFelix Fietkau
2012-02-26system-linux: fix the default broadcast address for v4Felix Fietkau
2012-02-26remove device_{route,addr}->deviceFelix Fietkau
2012-02-15set route metrics using netlinkFelix Fietkau
2012-01-22remove flags for device settings that could not be applied successfullyFelix Fietkau