summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-07-18scripts: set type for the "key" attributeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-07-17bridge: enable IGMP snooping by defaultFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-29interface: clean up l3 device reference on remove/reloadFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-29bridge: enable multicast_to_unicast on all wireless bridge portsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-26device: fall back to simple interface status check if not provided by the ↵Felix Fietkau
device type Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-26interface: fix indentationFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-26proto-shell: add debug msg for calling handlersFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-26system-dummy: set present flags on all devicesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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-20system: fix treatment of RT_TABLE_MAINSteven Barth
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>
2014-06-18linux: unify functions to delete linksSteven Barth
Signed-off-by: Steven Barth <steven@midlink.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-18netifd: Check device_claim return code in all casesHans Dedecker
Fixes observed issue a tunnel interface is reported as up although device_claim failed Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-18netifd: Fix ipip6 tunnel memleak in case of tunnel creation failureHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-18netifd: Fix macvlan delete via netlinkHans Dedecker
Fix macvlan delete via netlink as netlink attribute IFLA_IFNAME data size was incorrect (size reject by the kernel) and NLM_F_REQUEST flag was missing. In addition some minor improvements (attribute IFLA_INFO_KIND can be left out as RTM_DELLINK does not require the attribute) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-18netifd: Fix vlan delete via netlinkHans Dedecker
Fix vlan delete via netlink as netlink attribute IFLA_IFNAME data size was incorrect. In addition some minor improvements. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-06-11Reorder alfabetically device type matching as they are growing in numberGioacchino Mazzurco
Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
2014-06-11Add vlan 802.1q/802.1ad support as netifd devicesGioacchino Mazzurco
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>
2014-06-11Add qtcreator and kdevelop4 project files to .gitignoreGioacchino Mazzurco
Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
2014-06-11netifd: process reload calls immediately instead of going through a timerFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-06-10Add support for onlink-flags for IPv4 routesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-06-05add a interface. prefix to ubus_notify callsJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-05-28macvlan: fix missing reference to device_attr_listGioacchino Mazzurco
At moment macvlan devices ignore options inherited as device like mtu. Thanks to suggestions provided by Felix i have done this patch that fix this iussue by adding the missing reference to device_attr_list in macvlan_attr_list Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
2014-05-21Rewrite ipip6-tunnel setup to use netlink and add support for FMRsSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-05-21Fix a spurious segfault when tearing down interfacesSteven Barth
Signed-off-by: Steven Barth <steven@midlink.org>
2014-05-15wireless: fix cancelling setupFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-10system-linux: always set the ifindex for hotplug devices on initFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-09netifd: Fix node version set after freeHans Dedecker
Fixes an issue where a bridge member will be removed from the bridge upon an interface ifup as the bridge node version -1 is overwritten by vlist_add while the new created bridge member pointer is freed in bridge_member_update Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-05-09netifd: Check interface state only when main device is set during ↵Hans Dedecker
interface_change_config Fixes a regression issue introduced by commit d2a33f3f0fe704e4396fa2ada08401cb955ba7cb for device less protocol handlers. An active interface using a deviceless protocol handler will be be teared down when the interface config is checked upon an update as the interface link and enabled parameters are unset as no underlying device is present (eg tunnel interfaces) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
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-05-09netifd: Apply interface metric on configured interface gateway parametersHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-05-06device: prevent interface up/down calls for external devicesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-02interface: clear iface->available before changing main_devFelix Fietkau
Fixes bogus interface restart loop on interface_remove_link Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-02interface: use interface_set_main_dev() from interface_remove_linkFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-05-02interface: do not set l3_dev along with main_dev anymoreFelix Fietkau
Made unnecessary by recent fixes to l3_dev handling Signed-off-by: Felix Fietkau <nbd@openwrt.org>
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-29netifd: fix a use-after-free issue on wireless config updateFelix Fietkau
After vlist_add() the device could have been freed Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-26netifd: Add interface config support to enable/disable IPv6 in the kernel ↵Hans Dedecker
per device Main use case is being able to disable IPv6 on (a) WAN interface(s) when only IPv4 connectivity is offered or 6rd is used. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2014-04-26interface-event: make eventnames static and constFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-26netifd: Rework hotplug event queueing in case of congestionHans Dedecker
In case of event congestion (e.g. when several interfaces become active in a short notice) : -hotplug events will be handled on a first come first served basis (before it was lifo) -drop a new ifupdate event in favour of an already queued ifup event (before the ifup event was overwritten by the ifupdate event resulting in some hotplug scripts "missing" the ifup event) Additonal the event flow has been documented Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Joeri Barbarien <joeri.barbarien@gmail.com>
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: Mark interface as dynamic after it has been added in the interface listHans Dedecker
Adding an interface in the interface list in case of a config update will override the node version of the old interface and thus overriding the dynamic interface marker. In case of config update interface_set_dynamic is done on an invalid interface pointer as the new interface pointer has been freed. 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-04-21config: add support for disabling interfacesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-19ubus: check the l3_dev pointer before dereferencing itFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-19interface: ensure that l3_dev gets set whenever the proto handler marks the ↵Felix Fietkau
interface as up Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2014-04-11interface: add support for a parameter to force setup without a carrier on ↵Felix Fietkau
the underlying device Signed-off-by: Felix Fietkau <nbd@openwrt.org>