summaryrefslogtreecommitdiffhomepage
path: root/device.h
AgeCommit message (Collapse)Author
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-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-03-21netifd: Reload proto on topology changeHelmut Schaa
Introduce a new device event "topology change" that gets signaled by bridges on adding/removing members. On "topology changes" the proto handlers are requested to "renew" which is most useful for DHCP. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.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>
2013-12-14Revert "netifd: Link layer state support on device level"Felix Fietkau
This reverts commit c439b52400978dd3799c66e1f632ee68d2c7c9eb.
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-08netifd: Code style line/clean upHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
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-10config: use the new uci_blob library codeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-04-15device: use safe_list for device event, fixes some hang issuesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-02-10device: protect device event broadcast against simultaneous deletions of ↵Felix Fietkau
multiple receivers in the callback (can happen with aliases) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-07-05alias: use a callback for managing device presence state, track alias deps ↵Felix Fietkau
in a separate list to avoid recursion issues
2012-07-05split alias support into a separate source file for better readabilityFelix Fietkau
2012-07-05fix ifname for alias+vlan chainsFelix Fietkau
2012-07-05device: export device_broadcast_eventFelix Fietkau
2012-06-07device: make device_set_disabled inline, add device_set_deferredFelix Fietkau
2012-05-04add copyright headersFelix Fietkau
2012-03-15parse tunnel devices from configFelix Fietkau
2012-03-04device: differentiate between DEV_CONFIG_APPLIED (no device up/down), and ↵Felix Fietkau
DEV_CONFIG_RESTART (device restart)
2012-01-22save and restore previous device settings when overriding them via configFelix Fietkau
2012-01-22move device settings to a separate structFelix Fietkau
2012-01-19allow devices to be disabled through a config optionFelix Fietkau
2011-12-04fix use-after-free on device free codepath due to recursion issues, and fix ↵Felix Fietkau
dev->parent refcounting issues
2011-11-04add a hotplug op for preparing an interface bridge so that it's ready when ↵Felix Fietkau
an external process adds interfaces
2011-10-26recognize stacked interfaces (e.g. dsa) and handle their dependenciesFelix Fietkau
2011-10-20do not clear device state for devices created by proto-up with ↵Felix Fietkau
address-external set
2011-10-19rework device hotplug handling some more, add device_lock/device_unlock to ↵Felix Fietkau
prevent use-after-free bugs
2011-10-19apply device settings to simple devices with config specified from the ↵Felix Fietkau
interface section (legacy format compatibility), but only if no other config was provided
2011-10-18add support for alias devices, which are activated based on hotplug events ↵Felix Fietkau
containing the real device name
2011-10-18directly pass the device name to the device create functionFelix Fietkau
2011-10-11implement a new ubus object "network.device", add a method for dumping ↵Felix Fietkau
detailed device information
2011-10-06prevent deletion devices that are part of the current configurationFelix Fietkau
2011-10-05rename a variable for clarityFelix Fietkau
2011-10-05rename check_device_state to device_check_stateFelix Fietkau
2011-10-03more changes for config reload handlingFelix Fietkau
2011-10-03use a common function for creating devices that avoids creating duplicatesFelix Fietkau
2011-09-05move ip related functions and data structures to a separate header fileFelix Fietkau
2011-09-05improve interface for cleaning up unused devicesFelix Fietkau
2011-09-04make device_claim/device_release operate on the device_user instead of the ↵Felix Fietkau
device to avoid refcount bugs
2011-09-04make bridge configuration more dynamicFelix Fietkau
2011-07-29reorder functionFelix Fietkau
2011-07-29s/release_device/device_release/Felix Fietkau
2011-07-29s/claim_device/device_claim/Felix Fietkau
2011-07-29s/init_virtual_device/device_init_virtual/Felix Fietkau
2011-07-29s/init_device/device_init/Felix Fietkau
2011-07-29s/get_device/device_get/Felix Fietkau
2011-07-29s/cleanup_device/device_cleanup/Felix Fietkau
2011-07-29s/set_device_present/device_set_present/Felix Fietkau
2011-07-29s/add_device_user/device_add_user/Felix Fietkau
2011-07-29s/remove_device_user/device_remove_user/gFelix Fietkau