summaryrefslogtreecommitdiff
path: root/system-dummy.c
Commit message (Collapse)AuthorAgeFilesLines
* netifd: Add mldversion config supportSteven Barth2014-12-231-6/+0
| | | | | | | | | | | | Config support to set the MLD host version on device level; possible values are : 1 : MLDv1 2 : MLDv2 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Cleaned up and simplified. Signed-off-by: Steven Barth <steven@midlink.org>
* netifd: Add igmpversion config supportHans Dedecker2014-12-081-0/+6
| | | | | | | | | | | | | Config support to set the IGMP host version on device level; possible values are : 1 : IGMPv1 2 : IGMPv2 3 : IGMPv3 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Cleand up and simplified Signed-off-by: Steven Barth <steven@midlink.org>
* netifd: Add rpfilter config supportHans Dedecker2014-11-191-0/+6
| | | | | | | | | | | Reverse path filtering config support; possible values are: 0: no source validation 1|strict: strict mode as packet will be dropped if the incoming interface is not the best reverse path 2|loose: loose mode as packet will be dropped if the source address is not reachable via any interface Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Fix device ifindex overwrite when processing netlink event messagesHans Dedecker2014-11-191-0/+5
| | | | | | | | | | | When a device with the same name is deleted and created again in the kernel the ifindex changes. A race condition will occur when netlink event messages linked to the old device are processed and will thus overwrite the correct ifindex of the new device. Further make sure a valid ifindex is in place for both external and internal devices when setting the state to enabled. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: GRE tunnel supportHans Dedecker2014-07-301-1/+1
| | | | | | Adds support for gre, gretap, grev6 and grev6tap tunnels Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* system-dummy: set present flags on all devicesFelix Fietkau2014-06-261-8/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* system: fix treatment of RT_TABLE_MAINSteven Barth2014-06-201-0/+5
| | | | | | | | | | | Do not treat RT_TABLE_MAIN as RT_TABLE_UNSPEC in system_resolve_rt_table() in order to allow ip rules with lookup main to work as expected. Provide a new function system_is_default_rt_table() to allow calling code to specifically test for RT_TABLE_MAIN, this is going to be needed for the backwards compatible handling of the table attribute in route objects. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* netifd: Route type supportHans Dedecker2014-06-181-0/+6
| | | | | | | | 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>
* Add vlan 802.1q/802.1ad support as netifd devicesGioacchino Mazzurco2014-06-111-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | At moment netifd supports just 802.1q vlan, you can configure them using a concise but "hacky" syntax using an interface config section, with this patch netifd acquire the capability of configuring 802.1ad and 802.1q vlan using config device sections, so you can define a vlan device plus interface with something like this: config device 'test' option type '8021ad' option name 'test' option ifname 'eth0' option vid '1000' config interface 'testif' option ifname 'test' option proto 'none' option auto '1' old syntax for 802.1q keeps working so no retrocompatibility problems, to keep retrocompatibility means also that user must not use name/ifname like eth0.2 for devices declared with the new style because this would trigger the "old style" when interface config section is parsed Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
* system-dummy: indicate link on present devicesFelix Fietkau2014-04-051-1/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* netifd: Fix bridge MTU setting when a bridge member is addedHans Dedecker2014-03-111-1/+1
| | | | | | 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>
* device: add macvlan supportFelix Fietkau2013-10-031-0/+10
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Fix system_resolve_rt_table() stub in system-dummy.cJo-Philipp Wich2013-04-051-2/+3
|
* Add support for ip rulesJo-Philipp Wich2013-04-041-0/+21
|
* Implement support for route / route6 table attributeJo-Philipp Wich2013-04-041-0/+5
|
* Initial IPv6 prefix supportSteven Barth2013-01-151-1/+7
| | | | Signed-off-by: Steven Barth <steven@midlink.org>
* clean up and fix system-dummy addr/route messagesFelix Fietkau2012-09-061-56/+28
|
* expose system_if_apply_settings, make it ignore the mac address for external ↵Felix Fietkau2012-07-121-0/+5
| | | | devices
* ignore mac80211 devices specified in /etc/config/networkFelix Fietkau2012-06-141-0/+5
|
* add copyright headersFelix Fietkau2012-05-041-0/+13
|
* always create device routesFelix Fietkau2012-03-151-4/+2
|
* system-linux: add functions for adding/removing ip tunnels (currently only ↵Felix Fietkau2012-03-151-0/+10
| | | | sit supported)
* system-dummy: add route metric informationFelix Fietkau2012-03-091-0/+3
|
* export carrier status in device statsFelix Fietkau2012-01-191-1/+9
|
* add dummy code for testing system_if_get_parent()Felix Fietkau2011-12-041-0/+3
|
* recognize stacked interfaces (e.g. dsa) and handle their dependenciesFelix Fietkau2011-10-261-0/+6
|
* flush routes after bringing up/down an interfaceFelix Fietkau2011-10-141-0/+5
|
* implement a new ubus object "network.device", add a method for dumping ↵Felix Fietkau2011-10-111-0/+5
| | | | detailed device information
* add interface uptime to the status infoFelix Fietkau2011-10-101-0/+11
|
* remove a bogus return statementFelix Fietkau2011-10-091-1/+0
|
* fix clearing device state, trigger it on device_init()Felix Fietkau2011-10-091-0/+5
|
* add more options for bridges, enable stp by default and set forwarding delay ↵Felix Fietkau2011-10-091-1/+1
| | | | to 1
* rework debugging code, add debugging levelsFelix Fietkau2011-10-041-14/+14
|
* add a system_init function for system controlSteven Barth2011-09-231-0/+5
|
* system-dummy: print ipv6 addresses on address add/removeFelix Fietkau2011-09-121-0/+10
|
* move ip related functions and data structures to a separate header fileFelix Fietkau2011-09-051-0/+1
|
* fix compiler warningsFelix Fietkau2011-09-041-0/+4
|
* s/set_device_present/device_set_present/Felix Fietkau2011-07-291-1/+1
|
* add routes/gateway supportFelix Fietkau2011-05-031-0/+52
|
* move interface address handling to the device module, clean up arguments to ↵Felix Fietkau2011-05-021-7/+7
| | | | system_{add,del}_addr
* add functions for setting v4 addressesFelix Fietkau2011-04-131-0/+28
|
* rework includesFelix Fietkau2011-03-291-0/+1
|
* Initial importFelix Fietkau2011-03-271-0/+62