summaryrefslogtreecommitdiff
path: root/system-linux.c
Commit message (Collapse)AuthorAgeFilesLines
* netifd: Link layer state support on device levelHans Dedecker2013-12-081-21/+96
| | | | | | | Patch implements link layer state awareness (aka carrier detection) in netifd on device level. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* Tunnel don't fragment bit configurableHans Dedecker2013-12-081-4/+6
| | | | | | Make tunnel don't fragment bit configurable via UCI Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Apply tunnel MTUHans Dedecker2013-12-081-2/+5
| | | | | | Tunnel MTU is applied according to the tunnel MTU UCI parameter Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* utils: add a function for checking if a process given by pid is still aliveFelix Fietkau2013-10-221-1/+0
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* device: add macvlan supportFelix Fietkau2013-10-031-0/+88
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* IPv6: Improve source-routing policiesSteven Barth2013-06-031-0/+6
| | | | | | * 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
* IPv6: fix address-lifetime overflows on 64-bit architecturesSteven Barth2013-05-281-2/+6
|
* Move iprule flushing to the init function to make the timing predictableJo-Philipp Wich2013-05-271-9/+0
|
* Move initial iprule flushing to system_add_iprule() to not collide with ↵Jo-Philipp Wich2013-05-271-0/+9
| | | | generic multiwan support
* Use logical instead of physical name for tunnel underlying link.Steven Barth2013-05-131-3/+8
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* Add support for IP in IPv6 tunnels (DS-Lite)Steven Barth2013-05-131-60/+66
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* IPv6: Use source-routing to allow multi-wanSteven Barth2013-05-111-1/+2
|
* set default bridge priority to 0x7FFFJo-Philipp Wich2013-04-231-5/+3
|
* add bridge priority optionNiels Boehm2013-04-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | [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>
* Maintain config order of ip rules unless user explicitely provides priorityJo-Philipp Wich2013-04-051-0/+2
|
* Add myself to header for IPv6 workSteven Barth2013-04-051-0/+1
|
* Add support for ip rulesJo-Philipp Wich2013-04-041-4/+190
|
* Implement support for route / route6 table attributeJo-Philipp Wich2013-04-041-1/+56
|
* Initial IPv6 prefix supportSteven Barth2013-01-151-4/+61
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* system-linux.c: use uin64_t datatype to read and store interface statistics, ↵Jo-Philipp Wich2013-01-131-7/+9
| | | | pass values as u64 blob type
* system-linux: do not delete kernel-generated ipv6 routes to fix using ↵Felix Fietkau2012-09-291-0/+5
| | | | advertised routes
* system-linux.c: install user routes with RTPROT_STATIC instead of ↵Jo-Philipp Wich2012-08-111-1/+1
| | | | RTPROT_BOOT so that routing daemons like quagga will pick it up
* expose system_if_apply_settings, make it ignore the mac address for external ↵Felix Fietkau2012-07-121-2/+2
| | | | devices
* system-linux.c: fix sysctl settingJo-Philipp Wich2012-07-111-1/+1
| | | | | The system_set_dev_sysctl() function erroneously used the value instead of the device name to format the sysctl path, this change corrects that.
* avoid setting device presence for wifi interfaces via hotplug messagesFelix Fietkau2012-07-051-0/+3
|
* zero-initialize the ifreq when adding/removing bridge member interfacesFelix Fietkau2012-07-051-0/+2
|
* zero-initialize the ifreq when setting interfaces up or downFelix Fietkau2012-07-051-0/+2
|
* add a #ifdef around the 6rd code to make it compile with older kernels that ↵Felix Fietkau2012-06-211-0/+2
| | | | do not have 6rd support
* Add 6rd options to tunnel spec.Stéphan Kochen2012-06-181-6/+34
| | | | | | | 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>
* ignore mac80211 devices specified in /etc/config/networkFelix Fietkau2012-06-141-0/+10
|
* replace the kernel's implicit network routes if the metric is setFelix Fietkau2012-05-201-1/+1
|
* system-linux: set the point to point address if presentFelix Fietkau2012-05-141-2/+6
|
* add copyright headersFelix Fietkau2012-05-041-0/+13
|
* system-linux: fix system_rtnl_call() return codeFelix Fietkau2012-04-151-3/+8
|
* always create device routesFelix Fietkau2012-03-151-2/+1
|
* system-linux: add functions for adding/removing ip tunnels (currently only ↵Felix Fietkau2012-03-151-1/+92
| | | | sit supported)
* make route metrics default to 0Felix Fietkau2012-03-091-1/+1
|
* system-linux: ignore errors in system_bridge_addif if the interface is ↵Felix Fietkau2012-03-051-16/+22
| | | | already in the specified bridge
* fix mac address handlingFelix Fietkau2012-02-281-2/+5
|
* move broadcast address handling to the coreFelix Fietkau2012-02-261-7/+2
|
* system-linux: fix the default broadcast address for v4Felix Fietkau2012-02-261-1/+10
|
* remove device_{route,addr}->deviceFelix Fietkau2012-02-261-16/+0
|
* set route metrics using netlinkFelix Fietkau2012-02-151-0/+3
|
* remove flags for device settings that could not be applied successfullyFelix Fietkau2012-01-221-3/+6
|
* show mtu, macaddr and txqueuelen from cached device settingsFelix Fietkau2012-01-221-2/+0
|
* save and restore previous device settings when overriding them via configFelix Fietkau2012-01-221-1/+28
|
* move device settings to a separate structFelix Fietkau2012-01-221-10/+9
|
* query available/used device speeds via ethtoolFelix Fietkau2012-01-221-1/+48
|
* add mac address to device infoFelix Fietkau2012-01-201-5/+24
|
* export carrier status in device statsFelix Fietkau2012-01-191-19/+49
|