build: disable unknown warning option error in clang Signed-off-by: Felix Fietkau <nbd@nbd.name>
build: suppress format truncation warnings to avoid errors with gcc7 Signed-off-by: Felix Fietkau <nbd@nbd.name>
device: add veth support 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 X Signed-off-by: Felix Fietkau <nbd@nbd.name>
netifd: fixes for json-c 0.12 Signed-off-by: John Crispin <blogic@openwrt.org>
Add vlan 802.1q/802.1ad support as netifd devices 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 scripts Signed-off-by: Felix Fietkau <nbd@openwrt.org>
proto-shell: move script handler dump code to handler.c Signed-off-by: Felix Fietkau <nbd@openwrt.org>
device: add macvlan support Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Add support for ip rules
fix libnl detection
prefer to link against libjson-c over libjson (the new library name in git versions of json-c) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
add optional flag for disabling compiler optimization (debug only)
split alias support into a separate source file for better readability
parse tunnel devices from config
system-linux: add functions for adding/removing ip tunnels (currently only sit supported)
add -Wmissing-declarations to cflags
move --std=gnu99 to the main cflags
drop -O0 for debug builds
add an install target