feed/routing.git
2 years agobabeld: add add_filter function
Nick Hainke [Sun, 27 Mar 2022 22:04:19 +0000 (00:04 +0200)]
babeld: add add_filter function

You can define filter functions in babeld by:

   in if eth0 metric 128

This commit adds the ubus equivalent to dynamically add filter on
runtime:

  ubus call babeld add_filter '{"ifname":"eth0", "type":"input",
                                "metric":128}'

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoolsrd: set lqm via ipc
Nick Hainke [Fri, 25 Mar 2022 18:26:06 +0000 (19:26 +0100)]
olsrd: set lqm via ipc

You can now give a lqm when adding an interface:
  ubus call olsrd add_interface '{"ifname":"wg_51821", "lqm":"0.5"}'

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoopennds: Release v9.7.0
Rob White [Sat, 19 Mar 2022 17:42:49 +0000 (17:42 +0000)]
opennds: Release v9.7.0

Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64, on snapshot

  * This version adds new functionality, and fixes some issues
  * Fix - syntax error (missing comma) in awk command in bash on generic Linux [bluewavenet]
  * Add - option to append serial number suffix to gatewayname [bluewavenet]
  * Add - block use of ip aliases on gateway interface [doctor-ox] [bluewavenet]
  * Fix - ndsctl json syntax error [bluewavenet]
  * Add - check for null variables in key value pairs in MHD callbacks [bluewavenet]
  * Fix - changed some notice messages into debug messages [bluewavenet]
  * Fix - possible return of incorrect pid [doctor-ox] [bluewavenet]
  * Fix - possible abiguities resulting in failure to parse parameters correctly [bluewavenet]
  * Fix - Remove deprecated get_client_token.sh [bluewavenet]
  * Fix - Prevent possible malformed mac address returned from dhcpcheck() [doctor-ox] [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2 years agoolsrd: update to 2022-03-18
Nick Hainke [Fri, 18 Mar 2022 12:41:55 +0000 (13:41 +0100)]
olsrd: update to 2022-03-18

fcb30aa4da73 unix: fix meshing with wireguard/point-to-point interfaces

Remove upstreamed patch:
- 101-unix-fix-meshing-with-wireguard-point-to-point-interfaces.patch

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoolsrd: fix recursive dependency
Etienne Champetier [Mon, 14 Mar 2022 04:51:20 +0000 (00:51 -0400)]
olsrd: fix recursive dependency

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2 years agovis: update it, refactor Makefile and refresh patch due to fuzz
Josef Schlehofer [Fri, 25 Feb 2022 23:44:56 +0000 (00:44 +0100)]
vis: update it, refactor Makefile and refresh patch due to fuzz

- Switch to AUTORELEASE in PKG_RELEASE
This avoids cases when someone forgets to bump PKG_RELEASE

- Fixed SPDX License Identifier

- Changed package versioning
Before: vis_1440-2_arm_cortex-a9_vfpv3-d16.ipk
After: vis_2013-04-07-7710cce4-1_arm_cortex-a9_vfpv3-d16.ipk

- Drop not necessary rows
(Some of them were overwritting defaults and it is not necessary)
Downloaded tarball is ~2kB smaller

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agoolsrd: add iptables as dependency
Nick Hainke [Sun, 27 Feb 2022 20:51:41 +0000 (21:51 +0100)]
olsrd: add iptables as dependency

The upcoming OpenWrt version (currently in the master branch) ships
firewall4 by default [1], which uses nftables instead of iptables.

Users might choose to use a compatible layer [2] with iptables-nft,
decide which iptables they want to use, and make appropriate changes
related to fw3/f4[3].

This package requires to use iptables (no matter which variant) for
smart-gw-rules.

[1] https://github.com/openwrt/openwrt/commit/08d9f6e3020b4a149b2007b6ed7d684c49af9bbf
[2] https://www.redhat.com/en/blog/using-iptables-nft-hybrid-linux-firewall
[3] https://github.com/openwrt/openwrt/commit/795e7155cbe3e78669f6821bf7aecb7c4e1e1afb

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agominimalist-pcproxy: fix post install script
Josef Schlehofer [Sat, 26 Feb 2022 15:45:22 +0000 (16:45 +0100)]
minimalist-pcproxy: fix post install script

Fixes:
Configuring minimalist-pcproxy.
sh: 1: unknown operand

Reported-by: Daniel Golle <daniel@makrotopia.org>
Suggested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agomrd6: remove it
Josef Schlehofer [Sun, 27 Feb 2022 12:48:32 +0000 (13:48 +0100)]
mrd6: remove it

According to the author [1]:
1. It is no longer supported and maintained.
2. It is no longer necessary as since 2005 the native multicast
   forwarding support was added to the Linux Kernel

As alternative pimbd could be used.

[1] https://github.com/hugosantos/mrd6/commit/c805eb33255dbc0b6647d463c6c67d1c9d3105a0

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agominimalist-pcproxy: Makefile cleanup
Josef Schlehofer [Sat, 26 Feb 2022 12:52:57 +0000 (13:52 +0100)]
minimalist-pcproxy: Makefile cleanup

- Fixed LICENSE
Software is licensed under MIT
- Added PKG_LICENSE_FILES

- The was wrong date in PKG_VERSION
The latest commit is 2014-12-12.

- Changed package versioning
Before: minimalist-pcproxy_2015-01-12-2d6d1b0b0a3b79a9b4a9b0a7606a84600a967bcb-2_arm_cortex-a9_vfpv3-d16.ipk
After: minimalist-pcproxy_2014-12-12-2d6d1b0b-1_arm_cortex-a9_vfpv3-d16.ipk

Also the downloaded tarball is smaller by 0,4 kB

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agonodogsplash: fix SPDX License Identifier and reordering
Josef Schlehofer [Sat, 26 Feb 2022 12:35:26 +0000 (13:35 +0100)]
nodogsplash: fix SPDX License Identifier and reordering

- Add PKG_LICENSE_FILES
- Use two spaces instead of tabs

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agoprince: Makefile refactoring
Josef Schlehofer [Sat, 26 Feb 2022 10:34:53 +0000 (11:34 +0100)]
prince: Makefile refactoring

- Use AUTORELEASE in PKG_RELEASE
- Use tarball instead of checkouting git
- Use two spaces instead of indentation
- In install section reorder it (first folder, then files and so on)
- Added LICENSE file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agoquagga: reorder things in Makefile
Josef Schlehofer [Sat, 26 Feb 2022 10:43:24 +0000 (11:43 +0100)]
quagga: reorder things in Makefile

- Fix SPDX License Identifier
- Use HTTPS in URL

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agomcproxy: Makefile cleanup
Josef Schlehofer [Sat, 26 Feb 2022 13:00:35 +0000 (14:00 +0100)]
mcproxy: Makefile cleanup

- Switched to AUTORELEASE
- Fixed SPDX License Identifier and added PKG_LICENSE_FILES
- Use HTTPS for project website
- Changed versioning
Before: mcproxy_2017-08-24-93b5ace42268160ebbfff4c61818fb15fa2d9b99-3_arm_cortex-a9_vfpv3-d16.ipk
After: mcproxy_2017-08-24-93b5ace4-1_arm_cortex-a9_vfpv3-d16.ipk

Downloaded tarball is smaller by 0,2 MB

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agomrd6: Makefle reordering
Josef Schlehofer [Sat, 26 Feb 2022 12:41:29 +0000 (13:41 +0100)]
mrd6: Makefle reordering

- Switch to AUTORELEASE

- Changed package versioning:
Before: mrd6_2013-11-30-c805eb33255dbc0b6647d463c6c67d1c9d3105a0-3_arm_cortex-a9_vfpv3-d16.ipk
After: mrd6_2013-11-30-c805eb33-1_arm_cortex-a9_vfpv3-d16.ipk

- Remove defaults, which are already defaults

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agopimbd: Makefile refactor
Josef Schlehofer [Sat, 26 Feb 2022 10:57:26 +0000 (11:57 +0100)]
pimbd: Makefile refactor

- Switch to AUTORELEASE
- There was no need to overwrite defaults, downloaded tarball is ~4 kB
  smaller
Also change the package versioning
Before: pimbd_2018-06-19-dbf4e5913b06e3160f506df15e6a047a403a5f21-2_arm_cortex-a9_vfpv3-d16.ipk
After: pimbd_2018-06-19-dbf4e591-1_arm_cortex-a9_vfpv3-d16.ipk

- Add PKG_LICENSE_FILES

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agoopennds: Makefile refactoring
Josef Schlehofer [Sat, 26 Feb 2022 11:28:09 +0000 (12:28 +0100)]
opennds: Makefile refactoring

- Reorder things
- Fixed SPDX License Identifier
- Added PKG_LICENSE_FILES
- Use two spaces instead of tab

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agooonf-dlep-radio: refactor define Package/oonf-dlep-radio
Josef Schlehofer [Fri, 25 Feb 2022 04:22:41 +0000 (05:22 +0100)]
oonf-dlep-radio: refactor define Package/oonf-dlep-radio

- Why there was oonf-git? WTF?
- Use two spaces instead of tabs

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agooonf-dlep-radio: refactor Makefile (package versioning, downloading)
Josef Schlehofer [Fri, 25 Feb 2022 04:07:37 +0000 (05:07 +0100)]
oonf-dlep-radio: refactor Makefile (package versioning, downloading)

- By this change, we are using downloading .tar.xz (which is default in OpenWrt)
Reference: OpenWrt base repository include/download.mk

Downloaded tarball size is ~60 kB smaller.

- Removed "v" in package naming.
Before: oonf-dlep-radio_v0.15.1_arm_cortex-a9_vfpv3-d16.ipk
After: oonf-dlep-radio_0.15.1_arm_cortex-a9_vfpv3-d16.ipk

Removed stuff, which is no longer needed like PKG_REV.

- Switch to AUTORELEASE in PKG_RELEASE

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agobmx6: update to 65cb0d542f16a4b4689f5ad2542c9f24215a6616
Josef Schlehofer [Fri, 25 Feb 2022 16:56:25 +0000 (17:56 +0100)]
bmx6: update to 65cb0d542f16a4b4689f5ad2542c9f24215a6616

Makefile polishing:
- Fixed SPDX License Identifier
- Use AUTORELEASE in PKG_RELEASE
This helps in cases when the PKG_RELEASE is forgotten

- Remove no longer used things like PKG_REV, etc.
Downloaded tarball is now ~80 kB smaller as we use .tar.xz
instead of .tar.gz

- Use https for their website

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2 years agoopennds: Release v9.6.0
Rob White [Sat, 19 Feb 2022 16:31:51 +0000 (16:31 +0000)]
opennds: Release v9.6.0

Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.1, 19.07.8

Description:
This version adds new functionality, and fixes some issues
  * Fix - correctly display return buffer in syslog [bluewavenet]
  * Add - use heap allocation for library call return buffer [bluewavenet]
  * Fix - OpenWrt, fhook request for fw3 [bluewavenet]
  * Add - spider remote urls before downloading [bluewavenet]
  * Add - OpenWrt, revert uncommitted uci updates at startup and shutdown [bluewavenet]
  * Fix - remove unneccesary flash writes and fix hosts updates [doctor-ox] [bluewavenet]
  * Add - Updated splash images [bluewavenet]
  * Add - OpenWrt makefile for nft or ipt dependencies [bluewavenet]
  * Fix - grep by word to prevent any ambiguity [doctor-ox] [bluewavenet]
  * Fix - ensure rate limiting is disabled if rate thresholds are set to zero [bluewavenet]
  * Add - querystring support for client status page [bluewavenet]
  * Add - Advanced/standard status page checkbox [bluewavenet]
  * Add - set default session timeout to 24 hours [bluewavenet]
  * Fix - potential buffer overflow [bluewavenet]
  * Fix - Restrict max packet limit to iptables maximum [bluewavenet]
  * Fix - descriptive labels on ndsctl status output [bluewavenet]
  * Add - update of README.md [bluewavenet]
  * Fix - Added required variable to FAS return string example documentation [dorkone]
  * Add - Default checkinterval set to 15 seconds [bluewavenet]
  * Fix - incoming and outgoing counters when unlimited bursting is enabled [bluewavenet]
  * Add - maximum bucket size configuration [bluewavenet]
  * Add - calculate moving average packet size for rate limiting [bluewavenet]
  * Add - some operational default values [bluewavenet]
  * Add - initial rate limits when unrestricted bursting is disabled [bluewavenet]
  * Add - Require clients to be in the dhcp database [bluewavenet]
  * Add - dhcpcheck library call [bluewavenet]
  * Fix - Remove trailing whitespace when getting clientaddress if client not active [bluewavenet]
  * Fix - Segfault when FAS fails to Return customstring [dorkone] [bluewavenet]
  * Add - Enable/Disable unrestricted bursting [bluewavenet]
  * Add - gatewayurl to querystring and use in place of originurl in FAS [bluewavenet]
  * Fix - more accurate debug message [bluewavenet]
  * Fix - Show packet rate correctly as packets per minute [bluewavenet]
  * Add - Report Packet Rate and Bucket Size in ndsctl status and json and status client page [bluewavenet]
  * Add - rate limit refresh to client limit rules [bluewavenet]
  * Fix - code readability [bluewavenet]
  * Fix - Documentation for data sent to Authmon Daemon [bluewavenet]
  * Add - Show unrestricted burst intervals in ndsctl status [bluewavenet]
  * Add - Set default bucket ratios to 10 [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2 years agoMerge pull request #786 from ecsv/batman-parallel
Elektra Wagenrad [Sat, 19 Feb 2022 11:27:34 +0000 (12:27 +0100)]
Merge pull request #786 from ecsv/batman-parallel

batman packages: Allow parallel builds

2 years agobatmand: Refresh patches with quilt 786/head
Sven Eckelmann [Fri, 20 Aug 2021 10:02:17 +0000 (12:02 +0200)]
batmand: Refresh patches with quilt

The test builds are now requiring quilt refreshed patches instead of git
patches. Otherwise the build check will not even try to build something.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agovis: Allow parallel builds
Sven Eckelmann [Sat, 19 Feb 2022 08:11:11 +0000 (09:11 +0100)]
vis: Allow parallel builds

The build system of this package is written in a way that it is safe to run
the make steps in parallel. The build time can be reduced slightly on
modern systems.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatmand: Allow parallel builds
Sven Eckelmann [Sat, 19 Feb 2022 08:11:11 +0000 (09:11 +0100)]
batmand: Allow parallel builds

The build system of this package is written in a way that it is safe to run
the make steps in parallel. The build time can be reduced slightly on
modern systems.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatman-adv: Allow parallel builds
Sven Eckelmann [Sat, 19 Feb 2022 08:11:11 +0000 (09:11 +0100)]
batman-adv: Allow parallel builds

The build system of this package is written in a way that it is safe to run
the make steps in parallel. The build time can be reduced slightly on
modern systems.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatctl: Allow parallel builds
Sven Eckelmann [Sat, 19 Feb 2022 08:11:11 +0000 (09:11 +0100)]
batctl: Allow parallel builds

The build system of this package is written in a way that it is safe to run
the make steps in parallel. The build time can be reduced slightly on
modern systems.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agoalfred: Allow parallel builds
Sven Eckelmann [Sat, 19 Feb 2022 08:11:11 +0000 (09:11 +0100)]
alfred: Allow parallel builds

The build system of this package is written in a way that it is safe to run
the make steps in parallel. The build time can be reduced slightly on
modern systems.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agoolsrd: fix setting default interface config
Nick Hainke [Sun, 13 Feb 2022 16:39:02 +0000 (17:39 +0100)]
olsrd: fix setting default interface config

The IPC should apply the "InterfaceDefaults".

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoMerge pull request #781 from ecsv/batadv-2022.0
Simon Wunderlich [Thu, 3 Feb 2022 20:21:41 +0000 (21:21 +0100)]
Merge pull request #781 from ecsv/batadv-2022.0

batman-adv: update packages to version 2022.0

2 years agoalfred: update to version 2022.0 781/head
Sven Eckelmann [Thu, 3 Feb 2022 18:54:23 +0000 (19:54 +0100)]
alfred: update to version 2022.0

* coding style cleanups and refactoring
* allow changing of batman-adv interface at runtime
* allow to start alfred without interfaces specified

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatctl: update to version 2022.0
Sven Eckelmann [Thu, 3 Feb 2022 18:52:41 +0000 (19:52 +0100)]
batctl: update to version 2022.0

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatman-adv: update to version 2022.0
Sven Eckelmann [Thu, 3 Feb 2022 18:47:44 +0000 (19:47 +0100)]
batman-adv: update to version 2022.0

* support latest kernels (4.9 - 5.17)
* dropped support for kernels < 4.9
* coding style cleanups and refactoring
* allow netlink usage in unprivileged containers
* bugs squashed:

  - don't send link-local multicast to mcast routers

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobabeld: remove unused return variable
Nick Hainke [Tue, 1 Feb 2022 19:12:11 +0000 (20:12 +0100)]
babeld: remove unused return variable

There is an unused variable in the function. Remove it.

Fixes: 385200443554 ("babeld: add add_interface function").
Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agobabeld: add add_interface function
Nick Hainke [Mon, 31 Jan 2022 22:14:22 +0000 (23:14 +0100)]
babeld: add add_interface function

An interface can be added dynmiacally to babeld by starting babeld with
the local management interface (-G) and saying:
  interface eth0

Add the ubus equivalent of this function:
  ubus call babeld add_interface '{"ifname":"eth0"}'

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoolsrd: add ubus ipc integration to olsrd
Nick Hainke [Sat, 15 Jan 2022 07:37:37 +0000 (08:37 +0100)]
olsrd: add ubus ipc integration to olsrd

IPC integration of olsrd with OpenWrt. Allow dynamic adding and removing
of interfaces at run-time. We need to rename the avl-tree files, since
libubox also defines avl tree. Also add patch to allow meshing via
wireguard point-to-point links.

The ubus interface offers following functions:
  - add_inteface '{"ifname":"wg_51820"}'
  - del_inteface '{"ifname":"wg_51820"}'

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoCI: fix runtime testing for non master branch
Paul Spooren [Thu, 13 Jan 2022 23:55:36 +0000 (00:55 +0100)]
CI: fix runtime testing for non master branch

The runtime testing always ran on master branch aka snapshots since the
branch wasn't passed over to the container execution!

Signed-off-by: Paul Spooren <mail@aparcar.org>
2 years agonaywatch: introduce kick-count
Nick Hainke [Thu, 13 Jan 2022 08:34:44 +0000 (09:34 +0100)]
naywatch: introduce kick-count

Check multiple rounds if neighbors are available before kicking. This
should reduce unneeded reboots.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agonaywatch: fix mode without watchdog
Nick Hainke [Thu, 13 Jan 2022 07:46:31 +0000 (08:46 +0100)]
naywatch: fix mode without watchdog

The if-condition was always evaluated to be true.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoolsrd: fix meshing via wireguard tunnels
Nick Hainke [Sat, 8 Jan 2022 21:11:44 +0000 (22:11 +0100)]
olsrd: fix meshing via wireguard tunnels

The procd script was not adding the wireguard interfaces. Add corner case
in the init script to allow meshing via wireguard.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoopennds: Release v9.5.1
Rob White [Sat, 18 Dec 2021 19:38:30 +0000 (19:38 +0000)]
opennds: Release v9.5.1
Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.1, 19.07.8

Description:
This version adds new functionality, and fixes some issues
  * Fix - ThemeSpec file downloads when mwan3 is running [bluewavenet]
  * Fix - Preemptive auth failure after previous deauth [minhng99] [bluewavenet]
From v9.5.0
  * Add - use average packet size instead of MTU when implementing rate limiting [bluewavenet]
  * Fix - typo in iptables command and remove a redundant command [bluewavenet]
  * Add - startdaemon() and stopdaemon() utility functions [bluewavenet]
  * Add - combined interface/ipaddress external gateway status monitoring [bluewavenet]
  * Fix - potential online/offline detection problem when mwan3 is running [bluewavenet]
  * Add - get_debug_level and syslog library calls [bluewavenet]
  * Fix - correctly reset upload and download rate rules [bluewavenet]
  * Add - extend upstream gateway checking for use with mwan3 loadbalance/failover [bluewavenet]
  * Fix - Potential NULL pointer segfault in http_microhttpd on calling authenticated() [bluewavenet]
  * Fix - Potential NULL pointer segfault in http_microhttpd on calling preauthenticated() [dddaniel]
  * Add - Calculate Bucket size based on achieved burst rate [bluewavenet]
  * Fix - prevent parameter parsing if clientip not known [bluewavenet]
  * Add - disable rate quotas by setting bucket ratio to zero [bluewavenet]
  * Fix - suppress some debug messages [bluewavenet]
  * Add - more libraries documentation [bluewavenet]
  * Add - library calls startdaemon and stopdaemon [bluewavenet]
  * Fix - Increase buffer length for longer interface names [koivunen]
  * Add - Update README.md [bluewavenet]
  * Add - bucket ratio option to config file [bluewavenet]
  * Add - upload and download bucket ratio config values [bluewavenet]
  * Fix - flag initial debuglevel to externals [bluewavenet]
  * Add - limit-burst tuning to rate quotas [bluewavenet]
  * Fix - add trailing space to defaultip [bluewavenet]
  * Add - record pre-emptive authentication in local log [bluewavenet]
  * Add - Write to local log function to libopennds [bluewavenet]
  * Add - set client_type and custom string for Pre-emptive authentication [bluewavenet]
  * Fix - Remove trailing newline from library call response [bluewavenet]
  * Fix - attempt to remove cid file only if client->cid is set [bluewavenet]
  * Add - a skip option for custom downloads to speed up serving page from themespec [bluewavenet]
  * Add - put client_type into query string when type is cpd canary [bluewavenet]
  * Add - set refresh=0 before loading images [bluewavenet]
  * Fix - Truncated return status [bluewavenet]
  * Add - Acknowlegement from call to dnsconfig [bluewavenet]
  * Fix - potential buffer overflow in debug output [bluewavenet]
  * Add - processing of custom data and client type [bluewavenet]
  * Add - Client Type for RFC8908 and RFC8910 clients [bluewavenet]
  * Add - rfc8908 replies for external FAS and refactor memory management for MHD calls [bluewavenet]
  * Add - send error 403 if client is not on openNDS subnet [bluewavenet]
  * Fix - remove uneccessary safe_asprint in auth.c [bluewavenet]
  * Fix - Initialise buffer to prevent receiving spurious characters [bluewavenet]
  * Add - encoded custom data support to ndsctl json, themespec and binauth [bluewavenet]
  * Add - advert_1.htm to thankyou page of theme_click-to-continue-custom-placeholders.sh [bluewavenet]
  * Add - library call get_interface_by_ip [bluewavenet]
  * Add - function encode_custom() for encoding custom data to be sent to openNDS [bluewavenet]
  * Fix - error 511, make all html refrences absolute to enforce link to MHD [bluewavenet]
  * Add - check status_path exists and is executeable [bluewavenet]
  * Fix - regression causing error 511 to be served from default script [bluewavenet]
  * Add - venue-info-url and can-extend-session json keys [bluewavenet]
  * Add - RFC 8908 initial experimental support [bluewavenet]
  * Add - debug message when resetting client [bluewavenet]
  * Fix - Ensure the ndscids directory exists before trying to write to it. [bluewavenet]
  * Fix - use eval in do_ndsctl to allow quoting of arguments [bluewavenet]
  * Fix - ensure client hid and client cid file is reset correctly [bluewavenet]
  * Fix - Titles of example ThemeSpec Files [bluewavenet]
  * Fix - Ensure ThemeSpec Files are executable [bluewavenet]
  * Remove - deprecated Allowed and Blocked entries in ndsctl status output [bluewavenet]
  * Add - Deprecate option macmechanism, allowedmaclist and blockedmaclist [bluewavenet]

Signed-off-by: Rob White <rob@blue-wave.net>
2 years agopimbd: add config load on start
Christian Strebe [Tue, 14 Dec 2021 22:12:51 +0000 (23:12 +0100)]
pimbd: add config load on start

Generate config file from uci and set as start config on start of pimbd.

Signed-off-by: Christian Strebe <uipo@freenet.de>
2 years agomrd6: fix compilation under macOS
Rosen Penev [Sat, 23 Oct 2021 20:21:53 +0000 (13:21 -0700)]
mrd6: fix compilation under macOS

uname variable needs to be overriden.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2 years agoMerge pull request #759 from ecsv/batadv-2021.4
Simon Wunderlich [Sun, 28 Nov 2021 16:53:36 +0000 (17:53 +0100)]
Merge pull request #759 from ecsv/batadv-2021.4

batman-adv: Drop duplicated dev_{hold,put} compat helpers

2 years agoMerge pull request #757 from djselbeck/musl
Simon Wunderlich [Sun, 28 Nov 2021 16:53:05 +0000 (17:53 +0100)]
Merge pull request #757 from djselbeck/musl

batman-adv: Prevent use from libc headers to not build with BIG_ENDIAN

2 years agobatman-adv: Drop duplicated dev_{hold,put} compat helpers 759/head
Sven Eckelmann [Sat, 27 Nov 2021 16:01:29 +0000 (17:01 +0100)]
batman-adv: Drop duplicated dev_{hold,put} compat helpers

The mac80211 package in OpenWrt master is now already providing helpers for
the changed dev_{hold,put} behavior in Linux 5.15. It is no longer
necessary to ship them as part of the batman-adv package.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatman-adv: Prevent use from libc headers to not build with BIG_ENDIAN 757/head
Hendrik Borghorst [Sat, 27 Nov 2021 11:02:46 +0000 (12:02 +0100)]
batman-adv: Prevent use from libc headers to not build with BIG_ENDIAN

Commit 97d35a552ec5b6ddf7923dd2f9a8eb973526acea of musl introduced the
macros __LITTLE_ENDIAN and __BIG_ENDIAN in alltypes.h. These are pulled
into the compilation of batman-adv. This has the side effect that the
function is_multicast_ether_addr of etherdevice.h in Linux kernel is
compiled as the big endian version and so fails to work properly on
little endian devices.

This commits prevents pulling in header files of musl libc similar to
OpenWRT commit 9ac47ee46918c45b91f4e4d1fa76b1e26b9d57fe

Signed-off-by: Hendrik Borghorst <hendrikborghorst@gmail.com>
2 years agoMerge pull request #754 from ecsv/batadv-2021.4
Simon Wunderlich [Fri, 19 Nov 2021 16:50:36 +0000 (17:50 +0100)]
Merge pull request #754 from ecsv/batadv-2021.4

batman-adv: update packages to version 2021.4

2 years agoalfred: update to version 2021.4 754/head
Sven Eckelmann [Fri, 19 Nov 2021 15:57:15 +0000 (16:57 +0100)]
alfred: update to version 2021.4

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatctl: update to version 2021.4
Sven Eckelmann [Fri, 19 Nov 2021 15:57:05 +0000 (16:57 +0100)]
batctl: update to version 2021.4

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatman-adv: update to version 2021.4
Sven Eckelmann [Fri, 19 Nov 2021 15:55:58 +0000 (16:55 +0100)]
batman-adv: update to version 2021.4

* support latest kernels (4.4 - 5.16)
* coding style cleanups and refactoring
* bugs squashed:

  - fix error handling during interface initialization

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agoMerge pull request #753 from openwrt/revert-750-batadv-2021.4
Simon Wunderlich [Fri, 19 Nov 2021 16:36:05 +0000 (17:36 +0100)]
Merge pull request #753 from openwrt/revert-750-batadv-2021.4

Revert "batman-adv: update packages to version 2021.4"

2 years agoRevert "batman-adv: update packages to version 2021.4" 753/head
Simon Wunderlich [Fri, 19 Nov 2021 16:35:37 +0000 (17:35 +0100)]
Revert "batman-adv: update packages to version 2021.4"

2 years agoMerge pull request #750 from ecsv/batadv-2021.4
Simon Wunderlich [Fri, 19 Nov 2021 16:34:37 +0000 (17:34 +0100)]
Merge pull request #750 from ecsv/batadv-2021.4

batman-adv: update packages to version 2021.4

2 years agoalfred: update to version 2021.4 750/head
Sven Eckelmann [Fri, 19 Nov 2021 15:57:15 +0000 (16:57 +0100)]
alfred: update to version 2021.4

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatctl: update to version 2021.4
Sven Eckelmann [Fri, 19 Nov 2021 15:57:05 +0000 (16:57 +0100)]
batctl: update to version 2021.4

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agobatman-adv: update to version 2021.4
Sven Eckelmann [Fri, 19 Nov 2021 15:55:58 +0000 (16:55 +0100)]
batman-adv: update to version 2021.4

* support latest kernels (4.4 - 5.16)
* coding style cleanups and refactoring
* bugs squashed:

  - fix error handling during interface initialization

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2 years agoohybridproxy: revert to default log level
Maarten Aertsen [Wed, 20 Oct 2021 13:33:02 +0000 (15:33 +0200)]
ohybridproxy: revert to default log level

Change log level from debug to info to avoid filling up syslog with query-level logging.

Signed-off-by: Maarten Aertsen <spam-github@rtsn.nl>
2 years agomrd6: include PKG_MIRROR_HASH
Eneas U de Queiroz [Tue, 19 Oct 2021 13:36:19 +0000 (10:36 -0300)]
mrd6: include PKG_MIRROR_HASH

This avoids unnecessary downloads and rebuilds.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2 years agomcproxy: include PKG_MIRROR_HASH, refresh patches
Eneas U de Queiroz [Tue, 19 Oct 2021 13:36:19 +0000 (10:36 -0300)]
mcproxy: include PKG_MIRROR_HASH, refresh patches

This avoids unnecessary downloads and rebuilds.
Patches were refreshed to please github PR checks.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2 years agopimbd: include PKG_MIRROR_HASH
Eneas U de Queiroz [Tue, 19 Oct 2021 13:36:19 +0000 (10:36 -0300)]
pimbd: include PKG_MIRROR_HASH

This avoids unnecessary downloads and rebuilds.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2 years agominimalist-pcproxy: include PKG_MIRROR_HASH
Eneas U de Queiroz [Tue, 19 Oct 2021 13:36:19 +0000 (10:36 -0300)]
minimalist-pcproxy: include PKG_MIRROR_HASH

This avoids unnecessary downloads and rebuilds.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2 years agonaywatch: warn user
Nick Hainke [Mon, 15 Nov 2021 18:22:56 +0000 (19:22 +0100)]
naywatch: warn user

Naywatch in combination with the watchdog can be tricky and dangerous
when doing a sysupgrade. Add a warning to always stop naywatch first and
check if procd took control over the watchdog again.

Also change use_watchdog to '0'.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoolsrd: update to 21-10-06
Nick Hainke [Sat, 6 Nov 2021 14:55:28 +0000 (15:55 +0100)]
olsrd: update to 21-10-06

- Revert "pud: fix build with gpsd >= 3.23.1"
- lib/pud/src/gpsdclient.c: drop handling of gpsdata->fix.status

Signed-off-by: Nick Hainke <vincent@systemli.org>
2 years agoRevert "olsrd: remove pud"
Nick Hainke [Sat, 6 Nov 2021 14:53:47 +0000 (15:53 +0100)]
Revert "olsrd: remove pud"

This reverts commit 2ac3accf36db53906ccb081dcbe6fafd05beaa6d.

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoolsrd: remove pud
Nick Hainke [Thu, 28 Oct 2021 06:29:28 +0000 (08:29 +0200)]
olsrd: remove pud

The gpsd integration in the pud library is wrong. With the new update
the library is no longer compiling. Remove this library.

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agocjdns: pass for some build warnings (#738)
William Fleurant [Tue, 19 Oct 2021 20:09:02 +0000 (22:09 +0200)]
cjdns: pass for some build warnings (#738)

Compile time changes reviewed by cjd.
Due to stricter compiler(s) we do not
want to error for these warnings.

Caused by: ...reading "past the end"
of a struct, because the struct is
actually a header and the body is of
unknown size. Compilers got stricter
and this became a warning.

Signed-off-by: William Fleurant <meshnet@protonmail.com>
3 years agobabeld: remove unnecessray blob_buf_init calls
Nick Hainke [Sat, 16 Oct 2021 07:35:53 +0000 (09:35 +0200)]
babeld: remove unnecessray blob_buf_init calls

For some reason the buffer is initialized twice before filling it.
This does not break anything but is useless. Reduce the initialization
to only one.

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agobabeld: free blob-buffers that are on stack
Nick Hainke [Wed, 13 Oct 2021 05:57:09 +0000 (07:57 +0200)]
babeld: free blob-buffers that are on stack

As Felix mentioned:
If a buffer was already allocated, blob_buf_init reuses it. You can
keep reusing it as many times as you want. You only need to call
blob_buf_free if you explicitly want to free the buffer memory
(e.g. on exit, or if the blob_buf is on stack).

http://lists.openwrt.org/pipermail/openwrt-devel/2021-October/036722.html

This PR frees the blob-buffers that are on the stack.

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoolsrd: wait for wireless to initialize before starting
Perry Melange [Tue, 12 Oct 2021 16:17:08 +0000 (18:17 +0200)]
olsrd: wait for wireless to initialize before starting

Wait for wireless to initialize (pending="false") to ensure
that any olsrd(6) configured interfaces and their associated
devices are up.  This provides the init script the ability
to properly add all interface sections to the generated
config file /tmp/etc/olsrd(6).conf

Signed-off-by: Perry Melange <isprotejesvalkata@gmail.com>
3 years agonaywatch: fix procd handling
Nick Hainke [Fri, 1 Oct 2021 08:55:36 +0000 (10:55 +0200)]
naywatch: fix procd handling

Sometimes, naywatch can not handover the watchdog to procd again using
ubus. We need to call the same ubus command multiple times until procd
takes over control again.

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoopennds: Release v9.4.0
Rob White [Fri, 24 Sep 2021 07:08:16 +0000 (08:08 +0100)]
opennds: Release v9.4.0

Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.0, 19.07.8

Description:
This version adds new functionality, and fixes some issues
  * Add - Error message in fas-aes-https if shared key is mismatched [bluewave.net]
  * Fix - and refactor error 511 page generation[bluewave.net]
  * Fix - and refactor dnsmasq configuration [bluewave.net]
  * Fix - Typographic error preventing RFC8910 disable [bluewave.net]
  * Add - gateway address and gatewayfqdn to ndsctl json output [bluewave.net]
  * Add - RFC8910 housekeeping on startup and shutdown [bluewave.net]
  * Add - correctly apply dhcp option 114 for generic Linux [bluewave.net]
  * Add - reading of configured ndsctlsocket in ndsctl utility[bluewave.net]
  * Add - use send_error 200 for MHD watchdog [bluewave.net]
  * Add - generation of page_511 html by library script [bluewave.net]
  * Add - extend debuglevel support to library scripts [bluewave.net]
  * Refactor - fas-aes-https to simplify and make customisation of http easier [bluewave.net]
  * Add - library script for error 511 page, allowing customisation [bluewave.net]
  * Add - make authmon report connection error details [bluewave.net]
  * Fix- remove unwanted debug message in ndsctl [bluewave.net]
  * Add - RFC8910 support by default [bluewave.net]
  * Add - display status page when accessing /login when authenticated [bluewave.net]
  * Add - MHD response to RFC8910 requests [bluewave.net]
  * Add - Dnsmasq RFC8910 configuration [bluewave.net]
  * Add - send error 511 in response to unsupported http method [bluewave.net]
  * Add - Check for ca-bundle on OpenWrt, if not installed, add syslog messages and terminate [bluewave.net]
  * Add - Make ndsctl use the configured value for socket path if set and deprecate -s option [bluewave.net]
  * Add - Warning message when Walled Garden port 80 is allowed [bluewave.net]
  * Fix - remove un-needed pthread_kill in termination_handler() [bluewave.net] [T-X]
  * Fix - debug messages from authmon.sh [bluewave.net]
  * Fix - Allow disabling gateway fqdn, facilitating access to router port 80 [bluewave.net]
  * Fix - Segfault in ndsctl when -s option is used incorrectly [bluewave.net] [T-X]
  * Fix - Typo making calculation of ul/dl rates incorrect [bluewave.net]
  * Fix - Allow port 80 to be configured in the Walled Garden [bluewave.net]

Signed-off-by: Rob White <rob@blue-wave.net>
3 years agoMerge pull request #724 from ecsv/batadv-2021.3
Simon Wunderlich [Wed, 15 Sep 2021 07:42:43 +0000 (09:42 +0200)]
Merge pull request #724 from ecsv/batadv-2021.3

batman-adv: update packages to version 2021.3

3 years agoalfred: update to version 2021.3 724/head
Sven Eckelmann [Tue, 14 Sep 2021 19:15:42 +0000 (21:15 +0200)]
alfred: update to version 2021.3

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agobatctl: update to version 2021.3
Sven Eckelmann [Tue, 14 Sep 2021 19:15:25 +0000 (21:15 +0200)]
batctl: update to version 2021.3

* (no changes)

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agobatman-adv: update to version 2021.3
Sven Eckelmann [Tue, 14 Sep 2021 19:14:11 +0000 (21:14 +0200)]
batman-adv: update to version 2021.3

* support latest kernels (4.4 - 5.15)
* coding style cleanups and refactoring
* reduced memory copy overhead when sending broadcasts

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agoMerge pull request #721 from ecsv/batadv-2021.2
Simon Wunderlich [Sun, 22 Aug 2021 13:39:32 +0000 (15:39 +0200)]
Merge pull request #721 from ecsv/batadv-2021.2

batman-adv: Fix build against kernel 5.10

3 years agobatman-adv: Fix build against kernel 5.10 721/head
Sven Eckelmann [Sun, 22 Aug 2021 06:56:28 +0000 (08:56 +0200)]
batman-adv: Fix build against kernel 5.10

The linux kernel 5.10 needs an explicit include of linux/if_bridge.h to
define br_multicast_list_adjacent and the struct br_ip_list.

Reported-by: Rosen Penev <rosenp@gmail.com>
Fixes: 47cd2a4b627d ("batman-adv: update to version 2021.2")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agoMerge pull request #716 from ecsv/batadv-2021.2
Simon Wunderlich [Fri, 20 Aug 2021 20:46:37 +0000 (22:46 +0200)]
Merge pull request #716 from ecsv/batadv-2021.2

batman-adv: update packages to version 2021.2

3 years agoalfred: update to version 2021.2 716/head
Sven Eckelmann [Fri, 20 Aug 2021 09:34:32 +0000 (11:34 +0200)]
alfred: update to version 2021.2

* manpage cleanups

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agobatctl: update to version 2021.2
Sven Eckelmann [Fri, 20 Aug 2021 09:34:09 +0000 (11:34 +0200)]
batctl: update to version 2021.2

* manpage cleanups
* coding style cleanups and refactoring

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agobatman-adv: Refresh patches with quilt
Sven Eckelmann [Fri, 20 Aug 2021 10:02:17 +0000 (12:02 +0200)]
batman-adv: Refresh patches with quilt

The test builds are now requiring quilt refreshed patches instead of git
patches. Otherwise the build check will not even try to build something.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agobatman-adv: update to version 2021.2
Sven Eckelmann [Fri, 20 Aug 2021 09:31:19 +0000 (11:31 +0200)]
batman-adv: update to version 2021.2

* support latest kernels (4.4 - 5.14)
* coding style cleanups and refactoring
* add MRD + routable IPv4 multicast with bridges support
* rewrite of broadcast queuing
* bugs squashed:

  - avoid kernel warnings on timing related checks

Signed-off-by: Sven Eckelmann <sven@narfation.org>
3 years agocjdns: fix uci-defaults (#714)
Etienne Champetier [Thu, 19 Aug 2021 11:05:07 +0000 (07:05 -0400)]
cjdns: fix uci-defaults (#714)

Since https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=4b9a67362d70c544b85078b8d5c661f43f7472d9,
uci network config interface sections use 'device' instead of 'ifname'

Even if 'device' seems to always be set by
package/base-files/files/bin/config_generate, we keep the fallbacks
in case someone install the package via opkg and has a non migrated
network config

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
3 years agoMerge pull request #713 from mattreeve/master
Toke Høiland-Jørgensen [Thu, 12 Aug 2021 12:42:53 +0000 (14:42 +0200)]
Merge pull request #713 from mattreeve/master

[master] bird2: Fix bus error on OSPF on IPQ806X

3 years agobird2: Fix bus error on OSPF on IPQ806X 713/head
Matt Reeve [Tue, 10 Aug 2021 11:41:04 +0000 (12:41 +0100)]
bird2: Fix bus error on OSPF on IPQ806X

On a Netgear R7800, if ospf v2 or v3 is configured in bird.conf, it fails to start with this error:

Fri Jun 11 14:41:11 2021 daemon.info bird: Started
Fri Jun 11 14:41:11 2021 kern.err kernel: [ 3500.853248] Alignment trap: not handling instruction f44c0a1f at [<00035848>] Fri Jun 11 14:41:11 2021 kern.alert kernel: [ 3500.853283] 8<--- cut here ---
Fri Jun 11 14:41:11 2021 kern.alert kernel: [ 3500.859363] Unhandled fault: alignment exception (0x801) at 0x007e0624
Fri Jun 11 14:41:11 2021 kern.alert kernel: [ 3500.862443] pgd = 0bbef4fd
Fri Jun 11 14:41:11 2021 kern.alert kernel: [ 3500.868821] [007e0624] *pgd=5d6ca835, *pte=5c40b75f, *ppte=5c40bc7f

The problem is due to a struct not being properly aligned on the ARMv7 architecture.

This patch fixes the problem by adding the "PACKED" macro to the affected struct. Note
that upstream may later fix this in another way, in which case this patch will not be required.

Signed-off-by: Matt Reeve <matt@mreeve.com>
(cherry picked from commit 166b6ea77b30f82eb880ce43a9e9ff343b79fe2e)

3 years agoopennds: Release v9.3.0
Rob White [Mon, 9 Aug 2021 11:47:53 +0000 (12:47 +0100)]
opennds: Release v9.3.0

Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.0-rc3, 19.07.7

Description:
This version adds new functionality, and fixes some issues
  * Add - firewall passthrough mode for authenticated users [bluewave.net]
  * Add - use configured debuglevel in authmon [bluewave.net]
  * Add - automated log rotation and client_zone to binauth_log [bluewave.net]
  * Add - increased timeout interval for file downloads [bluewave.net]
  * Add - local interface to MeshZone and remove unneeded call to ip utility [bluewave.net]
  * Add - log_mountpoint and max_log_entries options [bluewave.net]
  * Add - config variables ext_interface and ext_gateway [bluewave.net]
  * Add - Start initial download of remotes only if online [bluewave.net]
  * Add - Router online/offline watchdog [bluewave.net]
  * Fix - Segfault when gatewayfqdn is disabled [bluewave.net]
  * Fix - missing clientmac when not using themespec [bluewave.net]
  * Fix - some compiler warnings [bluewave.net]
  * Fix - use configured value for webroot for remote image symlink to images folder [bluewave.net]
  * Fix - remove refrences to login.sh in documentation and comments [bluewave.net]
  * Fix - Prevent potential read overrun within the MHD page buffer [bluewave.net]
  * Remove - legacy get_ext_iface() function [bluewave.net]

Signed-off-by: Rob White <rob@blue-wave.net>
3 years agonaywatch: add naywatch
Nick Hainke [Tue, 13 Jul 2021 15:33:42 +0000 (17:33 +0200)]
naywatch: add naywatch

The network may crash on the SoCs, but the SoC itself does not. This
leads to a node no longer being accessible in a mesh network.  If the
node is placed in a location that is not easily accessible, e.g. in a
high tower, it can cause a lot of problems. Therefore we check the
link-local connectivity on the configured interfaces.

Signed-off-by: Nick Hainke <vincent@systemli.org>
Tested-by: Simon Polack <spolack+git@mailbox.org>
Signed-off-by: Simon Polack <spolack+git@mailbox.org>
3 years agoolsrd: rename general to procd
Nick Hainke [Sun, 1 Aug 2021 08:49:57 +0000 (10:49 +0200)]
olsrd: rename general to procd

It was requested to name the section "procd".

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoolsrd: make respawn_threshold configurable
Nick Hainke [Sun, 1 Aug 2021 08:22:49 +0000 (10:22 +0200)]
olsrd: make respawn_threshold configurable

Also make respawn_threshold configurable. Further, add default
values for:
- respawn_threshold 3600
- respawn_timeout 15
- respawn_retry 0

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoolsrd: improve respawn settings
Tobias Schwarz [Tue, 13 Jul 2021 18:08:14 +0000 (20:08 +0200)]
olsrd: improve respawn settings

This increases the amount of seconds to wait before a service restart
attempt from 5 to 15 seconds and allows unlimited retries. Olsrd
sometimes crashes together with a network interface and 5 seconds can
be too short to bring back up a crashed network interface, which is
required for olsrd to restart. It also adds the ability to configure
the wait time (respawn_timeout) and the number of retries
(respawn_retry).

Signed-off-by: Tobias Schwarz <info@tobias-schwarz.com>
3 years agoopennds: Release v9.2.0
Rob White [Thu, 15 Jul 2021 07:49:41 +0000 (08:49 +0100)]
opennds: Release v9.2.0

Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.0-rc3, 19.07.7

Description:
This version adds new functionality, improves performance, adds documentation and fixes an issue
  * Add - new config options to ndsctl status [bluewave.net]
  * Add - Readthedocs / man documentation for configuration options [bluewave.net]
  * Add - Faster convergence of average rates to configured rate quotas [bluewave.net]
  * Add - BinAuth parse authenticated client database for client data [bluewave.net]
  * Add - Use heap allocation for http page buffer allowing large page sizes [bluewave.net]
  * Fix - fail to serve downloaded images on custom themespec [bluewave.net]

Signed-off-by: Rob White <rob@blue-wave.net>
3 years agoolsrd: add olsrd-neigh.sh
Martin Hübner [Sun, 20 Jun 2021 11:16:54 +0000 (13:16 +0200)]
olsrd: add olsrd-neigh.sh

This script originates from Freifunk Berlin. It prints a list of
all meshing neighbors known to olsrd on the command line.

Added: Error-checking for IPv4/IPv6-Hosts.

Signed-off-by: Martin Hübner <martin.hubner@web.de>
3 years agoolsrd: fix olsrd starting before network
Nick Hainke [Fri, 18 Jun 2021 08:06:38 +0000 (10:06 +0200)]
olsrd: fix olsrd starting before network

Should fix #691.

Sometimes the wifi interface is not ready before olsrd tries to access
it. This leads to warnings in the form of:

daemon.info olsrd: /etc/rc.d/S65olsrd: olsrd_write_interface()
Warning: Interface 'wireless0' not found, skipped
daemon.notice procd: /etc/rc.d/S65olsrd: olsrd: /etc/rc.d/S65olsrd:
olsrd_write_interface() Warning: Interface 'wireless0' not found, skipped

We make use of the "wait_for" procd command that allows us to wait for
the network before starting olsrd.

Tested-by: Noki
Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoopennds: Release v9.1.1
Rob White [Mon, 5 Jul 2021 19:57:17 +0000 (20:57 +0100)]
opennds: Release v9.1.1

Maintainer: Rob White rob@blue-wave.net
Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc
Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.0-rc3, 19.07.7

Description:
This version fixes a compiler error, some compiler warnings and mutes a debug message
  * Fix - Compiler error, missing mode in call to open() [bluewave.net]
  * Fix - Compiler warning, ignored return value from call to lockf() [bluewave.net]
  * Fix - Compiler warning, ignored return value from call to system() [bluewave.net]
  * Fix - Compiler warning, ignored return value from call to fgets() [bluewave.net]
  * Fix - Remove debug message from call to get_client_interface library [bluewave.net]

Signed-off-by: Rob White <rob@blue-wave.net>
3 years agoolsrd: reload if config changed via uci
Nick Hainke [Tue, 22 Jun 2021 14:40:42 +0000 (16:40 +0200)]
olsrd: reload if config changed via uci

Fixes:
https://github.com/openwrt/luci/issues/5139

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agoissuetemplate: reference foreign repos
Sven Roederer [Thu, 17 Jun 2021 19:26:53 +0000 (21:26 +0200)]
issuetemplate: reference foreign repos

As we are the routing-feed, we don't care for packages of the base-, luci- and packages-feed.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
3 years agooonf-dlep-radio: add PKG_MIRROR_HASH
Nick Hainke [Sun, 13 Jun 2021 08:36:36 +0000 (10:36 +0200)]
oonf-dlep-radio: add PKG_MIRROR_HASH

Signed-off-by: Nick Hainke <vincent@systemli.org>
3 years agooonf-dlep-radio: fix compilation with Ninja
Rosen Penev [Fri, 11 Jun 2021 00:25:55 +0000 (17:25 -0700)]
oonf-dlep-radio: fix compilation with Ninja

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agooonf-dlep-proxy: fix compilation with Ninja
Rosen Penev [Fri, 11 Jun 2021 00:26:54 +0000 (17:26 -0700)]
oonf-dlep-proxy: fix compilation with Ninja

Signed-off-by: Rosen Penev <rosenp@gmail.com>