Commit Graph

3014 Commits

Author SHA1 Message Date
Matthias P. Walther
021080c094
Tunneldigger-Watchdog: Refractoring, move import to the top 2019-06-04 22:59:26 +02:00
Matthias P. Walther
31335089a2
Tunneldigger-Watchdog: Refractoring function has_mesh_vpn_neighbours() 2019-06-04 12:34:10 +02:00
Matthias P. Walther
f206b7c79f
Tunneldigger-Watchdog:
- Fix quotation style
 - refractoring / code optimization
2019-06-03 20:48:04 +02:00
Matthias P. Walther
796d09895a
Tunneldigger Watchdog: replace operator 2019-06-02 20:00:56 +02:00
Matthias P. Walther
03652f5fa2
Tunneldigger Watchdog: rename handle_batctl to handle as requested 2019-06-02 19:49:35 +02:00
Matthias P. Walther
3258c36f1c
Tunneldigger Watchdoch: refractoring and renaming of variable names with respect to coding convetions. 2019-06-02 16:55:49 +02:00
Matthias P. Walther
835a76e281
Tunneldigger Watchdoch: refractoring and renaming of functions with respect of coding convetions. Changed logic in read_pid_file for readability. 2019-06-02 15:59:50 +02:00
Matthias P. Walther
82b00d8319
Tunneldigger Watchdoch: refractoring and renaming of function 2019-06-02 15:50:25 +02:00
Matthias P. Walther
abe319eb12
Tunneldigger Watchdoch: Fix indentation 2019-06-02 15:41:12 +02:00
Matthias P. Walther
31e86c9665
Tunneldigger Watchdog: Switch from debugfs to batctl o to check for mesh-vpn connectivity. Minor refractoring. 2019-06-02 15:34:38 +02:00
Matthias P. Walther
d40fd3e535
Add watchdog script written in Lua to the gluon-mesh-vpn-tunneldigger
package.

The logic is based on the former watchdog written in (B)ash.

The code was written bei Robin Weiligmann <admin@robwei.me> and me.
2019-06-02 03:00:36 +02:00
Christof Schulze
08a8815815 gluon-l3roamd: add missing uc dependency
uc is used in the initscript. It must be set as dependency
2019-05-25 15:43:25 +02:00
David Bauer
5f19706756 gluon-core: fix mesh radios not being created
This commit fixes a bug where on first setup, mesh interfaces won't be
created for 2.4GHz radios.
2019-05-21 13:42:22 +02:00
David Bauer
1aa4ffc514 gluon-config-mode gluon-core: fix incorrect gluon.platform reference
The is_outdoor function is placed inside the gluon.platform module, not
the platform_info module. Currently, the outdoor-mode wizard component
and the upgrade script fail due to nil-value calls.
2019-05-21 13:42:22 +02:00
David Bauer
dca50d2f26 ramips: fix R6120 factory image
The factory firmware omits the JFFS2 end-marker while flashing via
web-interface. Add a 64k padding after the marker fixes this problem.

When the end-marker is not present, OpenWRT won't save the overlayfs
after initial flash.
2019-05-10 11:25:24 +02:00
Matthias Schiffer
7f0299b53d
modules: update Gluon packages
9a364fb8d0a4 respondd: fix crash caused by division by zero
67177de99afc libs/lua-math-polygon: add add math lib for gauss jordan Ponit in Polygon algorithm

Fixes #1717
2019-05-01 16:19:28 +02:00
Martin Weinelt
ad1a1906ab
gluon-core: fix reference to outdoors config site variable 2019-04-29 16:08:10 +02:00
Matthias Schiffer
16a78b4e9e
scripts/check_site.lua: use new format() function to simplify var_error() 2019-04-28 19:17:47 +02:00
Matthias Schiffer
5abddd2976
scripts/check_site.lua: fix array_to_string with non-string/number array elements
Fixes need_one_of() with boolean elements.
2019-04-28 19:16:28 +02:00
Matthias Schiffer
ddb11ddd69
Merge pull request #1329 from mweinelt/outdoor_mode
gluon-core: add outdoor channel support for 5 ghz radios
2019-04-28 18:52:10 +02:00
Martin Weinelt
501c3b38bb add gluon-config-mode-outdoor package
adds a section to the wizard for outdoor capable devices
that informs the user of of the regulatory situation and
allows a quick toggle of the outdoor mode.
2019-04-28 18:19:43 +02:00
Martin Weinelt
e20d5b0a3e gluon-core: allow presetting the outdoor mode for new installations 2019-04-28 18:19:43 +02:00
Martin Weinelt
423aafbd29 gluon-core: improve channel and add chanlist validation 2019-04-28 18:17:40 +02:00
Martin Weinelt
bf55249159 gluon-core: add outdoor support for 5 ghz radios
Add the `wifi5.outdoor_chanlist` site configuration that
allows specifying an outdoor channel range that can be
switched to for regulatory compliance.

Upon enabling the outdoor option the device will
 - configure the `outdoor_chanlist` on all 5 GHz radios
 - which may enable DFS/TPC, based on the regulatory domain
 - disable ibss/mesh on the 5 GHz radio, as DFS *will*
   break mesh connections
 - allow for htmode reconfiguration on 5 GHz radios

The outdoor option can be toggled from
 - Advanced Settings
   - W-LAN
     - Outdoor Installation

The `preserve_channel` flag overrules the outdoor channel
selection.
2019-04-28 18:17:11 +02:00
Martin Weinelt
4f60f6dbc6 gluon-core: disable legacy_rates by default, drop support for supported and basic rates (#1716) 2019-04-28 16:47:29 +02:00
Matthias Schiffer
09916f6e35
gluon-mesh-batman-adv: drop packets from mesh with next-node source or destination address (#1714)
Fixes #1659
2019-04-28 14:56:09 +02:00
bobcanthelpyou
fe521db441 build: add site check for obsolete settings (#1702) 2019-04-28 14:38:08 +02:00
Tata
e81d1a390f Add mechanism to reload domain related services (#1710) 2019-04-23 17:34:49 +02:00
Petr Štetiar
9dc1ac7f58
build: replace hardcoded paths with overridable variables
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-04-22 22:00:45 +02:00
Matthias Schiffer
1c1ccc3c2f
modules: update Gluon packages
ac0f8ac4b588 batman-adv-legacy: update to latest git

Fixes build for targets using kernel 4.9.
2019-04-22 00:17:27 +02:00
Matthias Schiffer
6412177a45
Refresh openwrt patches 2019-04-21 19:39:27 +02:00
Matthias Schiffer
59a44274cb
gluon-respondd: do not join link-local multicast group on br-client
Fixes #1701
2019-04-21 19:31:32 +02:00
Matthias Schiffer
befc439a61
modules: update Gluon packages
cf3e8d1a080f respondd: exit on unknown command line parameters
0f57108e3d65 respondd: make all internal functions static
593b2c626690 respondd: fix incorrect use of strncpy
31eb441db163 respondd: make delays specific for group and interface
2d89e972d9dd respondd: fix inet_pton() error message
a906d2447fbd respondd: miniz: fix -Wmisleading-indentation warning
42da0795e2dd batman-adv-legacy: update package version number
3dd552288959 batman-adv-legacy: restore Build/Prepare step
df0dd9cd6b49 batman-adv-legacy: update to latest git
2019-04-21 19:30:44 +02:00
Matthias Schiffer
a5614a5019
gluon-neighbour-info: fix outgoing interface for non-link-local multicast addresses 2019-04-21 19:19:02 +02:00
Matthias Schiffer
e9e1e2d18a
gluon-neighbour-info: exit on unknown parameters 2019-04-21 19:19:02 +02:00
Matthias Schiffer
7dec8ebf87
gluon-neighbour-info: fix mixed tab/space indentation 2019-04-21 19:19:02 +02:00
Matthias Schiffer
fc5f93604e
gluon-neighbour-info: fix inet_pton() error message
inet_pton() doesn't set errno on regular parse errors, so using perror()
doesn't make sense (and we avoid a confusing "Success" message).
2019-04-21 19:19:02 +02:00
bobcanthelpyou
aeebcf272c docs: add GLUON_DEBUG 2019-04-21 16:05:57 +02:00
Tata
12b87b2441 ipq40xx: add jalapeno from 8devices (#1706)
Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
2019-04-19 15:15:00 +02:00
Matthias Schiffer
134a6460a7
build: move hostapd-mini package from generic target to Makefile
By passing the package name through merge_packages, it becomes possible to
override the package choice in GLUON_SITE_PACKAGES again, for example:

	GLUON_SITE_PACKAGES += -hostapd-mini hostapd
2019-04-19 13:53:09 +02:00
Linus Lüssing
8e04679be6 gluon-mesh-batman-adv: add batctl dependency to gluon-mesh-batman-adv-14
The batctl v2013.4 build was removed from the batman-adv-legacy package
as the current, upstream batctl releases work with batman-adv-legacy,
too.

As a replacement we need to add the upstream batctl dependency to
gluon-mesh-batman-adv-14 to have a batctl available again here.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2019-04-16 12:03:20 +02:00
Linus Lüssing
a2bbc125b3 batctl: remove kmod-batman-adv dependency
This always pulls in the batman-adv compat 15 kernel module. However,
batctl works just as well with batman-adv-legacy (compat 14).

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2019-04-16 12:03:20 +02:00
Linus Lüssing
01fd25de42 modules: update Gluon packages
972e67f batman-adv-legacy: remove batctl v2013.4 (#213)
524ae77 tunneldigger: update to newest upstream commit (#216)
2019-04-16 12:03:20 +02:00
bobcanthelpyou
149b55526f gluon.mk: fix reference to LuaSrcDiet binary 2019-04-14 11:21:31 +02:00
bobcanthelpyou
2ce07ae2fe ar71xx: add support for TP-Link TL-WR840N v2 (#1697) 2019-04-12 01:32:11 +02:00
bobcanthelpyou
2c4f022994 build: rename DEVICES to GLUON_DEVICES (#1686) 2019-04-12 01:05:04 +02:00
bobcanthelpyou
078184a59c docs: add notice for opkg repo change (#1693) 2019-04-11 08:54:52 +02:00
Tata
d4c066a0f8 gluon-config-mode-mesh-vpn: 0300-mesh-vpn.lua fix limit_ingress default value (#1682)
in case of default disabled simple-tc for tunneldigger

Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
2019-04-11 08:50:48 +02:00
Sven Eckelmann
e13a614420 gluon-status-page-mesh-batman-adv: Save if metrics chose neighbor as own best nexthop
The commit a080049735 ("gluon-status-page-mesh-batman-adv: Retrieve TQ of
neighbors with non-best direct link") removed the check whether a neighbor
has the BATADV_ATTR_FLAG_BEST set. But consumers may still want to filter
out or mark neighbors which don't have this flag set. To assist with such a
feature, enhance the neighbor object with an extra boolean "best" attribute
which stores whether the BATADV_ATTR_FLAG_BEST was found or not.

Reported-by: Vincent Wiemann <webmaster@codefetch.de>
2019-04-09 01:31:51 +02:00
Sven Eckelmann
cef21e584a gluon-mesh-batman-adv: Save if metrics chose neighbor as own best nexthop
The commit ee63ed42fe ("gluon-mesh-batman-adv: List neighbors with
non-best direct link") removed the check whether a neighbor has the
BATADV_ATTR_FLAG_BEST set. But consumers may still want to filter out or
mark neighbors which don't have this flag set. To assist with such a
feature, enhance the neighbor object with an extra boolean "best" attribute
which stores whether the BATADV_ATTR_FLAG_BEST was found or not.

Reported-by: Vincent Wiemann <webmaster@codefetch.de>
2019-04-09 01:31:51 +02:00