summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* netifd: Activate -Wextra compile warningsHauke Mehrtens2023-02-191-1/+5
| | | | | | | | This activates some more compile warnings. -pedantic is not yet activated, then we see too many errors which I do not know how to mitigate. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* cmake: fix usage of implicit library and include pathsPetr Štetiar2022-02-201-2/+10
| | | | | | And thus allow building in out of tree setups etc. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* device: add support for configuring bonding devicesFelix Fietkau2021-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Supported options: - ports: member devices - policy: bonding policy supported values: - balance-rr - active-backup - balance-xor - broadcast - 802.3ad - balance-tlb - balance-alb - xmit_hash_policy: slave selection tx hash policy supported values: - layer2 - layer2+3 - layer3+4 - encap2+3 - encap3+4 - all_ports_active: allow receiving on inactive ports - min_links: minimum number of active links - ad_actor_system: LACPDU exchange MAC address - ad_actor_sys_prio: LACPDU priority value - ad_select: 802.3ad aggregation logic supported values: - stable - bandwidth - count - lacp_rate: 802.3ad LACPDU packet rate supported values: - slow (every 30 seconds) - fast (every second) - packets_per_port: number of packets before switching ports (balance-rr mode). - lp_interval: number of seconds between sent learning packets - dynamic_lb: distribute traffic according to port load - resend_igmp: number if IGMP membership updates after failover event - num_peer_notif: number of tx unsolicited ARP/NA after failover event - primary: name of the primary port - primary_reselect: primary port reselection policy supported values: - always - better - failure - failover_mac: MAC address selection policy supported values: - none - active - follow - monitor_mode: select ARP or MII link monitor: supported values: - arp - mii - monitor_interval: link monitor update interval (msec) - arp_target: ARP monitor target IP address (list) - arp_all_targets: all targets must be reachable to consider the link valid - arp_validate: ARP validation policy supported values: - none - active - backup - all - filter - filter_active - filter_backup - use_carrier: use carrier status instead of MII ioctl result - updelay: delay before enabling port after MII link up event (msec) - downdelay: delay before disabling port after MII link down event (msec) Signed-off-by: Felix Fietkau <nbd@nbd.name>
* extdev: add support for external device handlersArne Kappen2021-03-311-1/+2
| | | | | | | | | | This allows to integrate external daemons that configure network devices with netifd. At startup, netifd generates device handler stubs from descriptions in /lib/netifd/extdev-config via the mechanism in handler.c. These are then added to the list of device handlers. Device handlers stubs act as relays forwarding calls against the device handler interface to the external daemon. Signed-off-by: Arne Kappen <arne.kappen@hhi.fraunhofer.de>
* build: find and use libnl header dirsYousong Zhou2020-10-221-2/+6
| | | | | | | | | | | Name of the libnl .pc file is libnl-3.0.pc This commit is mainly for testing netifd build on usual Linux systems. netifd Makefile in current OpenWrt build system specifies custom cmake flags to directly point to libnl-tiny Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* CMakeList: Check that compiler supports -Wimplicit-fallthroughFlorian Fainelli2018-09-111-1/+11
| | | | | | | This is a GCC >= 7 feature, not all compilers support it. Fixes: 908a9f4f1027 ("CMakeLists.txt: add -Wimplicit-fallthrough to the compiler flags") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* CMakeLists.txt: add -Wimplicit-fallthrough to the compiler flagsAlexander Couzens2018-07-111-1/+1
| | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Acked-by: Hans Dedecker <dedeckeh@gmail.com>
* build: disable unknown warning option error in clangFelix Fietkau2017-05-091-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: suppress format truncation warnings to avoid errors with gcc7Felix Fietkau2017-05-041-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* device: add veth supportMatthias Schiffer2017-02-111-1/+1
| | | | | | | | | | | | | The veth config code mostly handles the primary interface of a veth pair, the secondary interface is not explicitly referenced and will be found as an unrelated interface after the pair has been created. This doesn't only allow us to keep the veth code simple (and similar to existing device handlers), but will also avoid complicating handling unnecessarily in case the secondary interface is moved into another network namespace. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* remove obsolete /opt/local prefix on Mac OS XFelix Fietkau2016-12-241-5/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netifd: fixes for json-c 0.12John Crispin2015-03-061-2/+1
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* Add vlan 802.1q/802.1ad support as netifd devicesGioacchino Mazzurco2014-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* add initial support for handling wireless devices via scriptsFelix Fietkau2013-11-291-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* proto-shell: move script handler dump code to handler.cFelix Fietkau2013-10-221-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* device: add macvlan supportFelix Fietkau2013-10-031-1/+1
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Add support for ip rulesJo-Philipp Wich2013-04-041-1/+1
|
* fix libnl detectionThomas Gstädtner2013-03-041-1/+2
|
* prefer to link against libjson-c over libjson (the new library name in git ↵Felix Fietkau2013-02-111-1/+2
| | | | | | versions of json-c) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add optional flag for disabling compiler optimization (debug only)Felix Fietkau2012-09-061-0/+3
|
* split alias support into a separate source file for better readabilityFelix Fietkau2012-07-051-1/+3
|
* parse tunnel devices from configFelix Fietkau2012-03-151-1/+1
|
* system-linux: add functions for adding/removing ip tunnels (currently only ↵Felix Fietkau2012-03-151-1/+1
| | | | sit supported)
* add -Wmissing-declarations to cflagsFelix Fietkau2011-10-191-1/+1
|
* move --std=gnu99 to the main cflagsFelix Fietkau2011-10-121-2/+2
|
* drop -O0 for debug buildsFelix Fietkau2011-10-091-1/+1
|
* add an install targetFelix Fietkau2011-10-091-0/+4
|
* add a variable for overriding the libnl linker commandFelix Fietkau2011-10-091-1/+5
|
* rename interface-hotplug.c to interface-event.cFelix Fietkau2011-10-091-1/+1
|
* add support for calls to a hotplug script on interface state changesFelix Fietkau2011-10-071-1/+2
|
* add a variable to allow forcing dummy mode on linux systemsFelix Fietkau2011-10-021-1/+1
|
* only override the uci conf dir in dummy modeFelix Fietkau2011-10-021-0/+1
|
* add OS switch to select system librarySteven Barth2011-09-221-6/+17
|
* only use -g3 with -DDEBUGFelix Fietkau2011-09-111-2/+2
|
* fix invoking shell protocol handler scriptsFelix Fietkau2011-09-101-1/+1
|
* add work in progress code for enumerating shell protocol handlersFelix Fietkau2011-09-091-2/+13
|
* move some code to utils.[ch]Felix Fietkau2011-09-071-1/+1
|
* move address handling to common codeFelix Fietkau2011-05-021-1/+1
|
* add a dummy protocol handler for "static"Felix Fietkau2011-04-131-1/+1
|
* add rudimentary protocol handlingFelix Fietkau2011-03-291-1/+1
|
* Initial importFelix Fietkau2011-03-271-0/+13