summaryrefslogtreecommitdiff
path: root/system-linux.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Add time.h includeJens Muecke2011-10-311-0/+1
| | | | Found on compiling for x64
* recognize stacked interfaces (e.g. dsa) and handle their dependenciesFelix Fietkau2011-10-261-0/+31
|
* fix system_if_checkFelix Fietkau2011-10-231-1/+1
|
* parse kobject uevent messages for figuring out when network devices appear, ↵Felix Fietkau2011-10-231-7/+82
| | | | RTM_NEWLINK is unreliable for some virtual devices, e.g. tap
* add a function for creating a raw event socket that does not use genl or rtnlFelix Fietkau2011-10-231-8/+15
|
* remove some more code duplicationFelix Fietkau2011-10-231-9/+17
|
* move code for creating an event socket to a functionFelix Fietkau2011-10-231-19/+28
|
* move all variables belonging to the netlink event socket to a common data ↵Felix Fietkau2011-10-231-19/+25
| | | | structure
* drop the cleanup path in system_init, since system_init failures are fatal ↵Felix Fietkau2011-10-231-15/+4
| | | | anyway
* reduce stack usageFelix Fietkau2011-10-201-2/+2
|
* do not clear device state for devices created by proto-up with ↵Felix Fietkau2011-10-201-0/+3
| | | | address-external set
* rework route handling, move parser code to interface-ip.c, add extra options ↵Felix Fietkau2011-10-191-3/+23
| | | | and add further support for pulling routes from config