summaryrefslogtreecommitdiff
path: root/olsrd
Commit message (Collapse)AuthorAgeFilesLines
* olsrd: update to 2023-06-12Nick Hainke2023-06-132-3381/+4
| | | | | | | | | Update to latest version. Remove upstreamed patch: - 100-rename-avl-to-olsrd_avl.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* treewide: remove AUTORELEASENick Hainke2023-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenWrt/packages removed AUTORELEASE treewide. Remove it also in the routing feed. This is just copied from [0] with modification to the sed cmd because it was not working for the routing feed: The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/routing; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's/\/Makefile$//';); do make package/$i/download done [0] - https://github.com/openwrt/packages/commit/0c10c224be81f9221dabfab449855ab6718d2a0c Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: trim trailing spaceStijn Tintel2022-11-031-1/+1
| | | | | | Found with modified Kconfiglib. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* olsrd: replace patch for storms with real patchNick Hainke2022-06-232-79/+83
| | | | | | Fixes: bb5bbc6afd8c ("olsrd: import patch to prevent olsr storms") Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: import patch to prevent olsr stormsNick Hainke2022-06-221-0/+79
| | | | | | | Fixes: https://github.com/OLSR/olsrd/issues/106 Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: set lqm via ipcNick Hainke2022-03-252-10/+28
| | | | | | | 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>
* olsrd: update to 2022-03-18Nick Hainke2022-03-182-41/+3
| | | | | | | | | 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>
* olsrd: fix recursive dependencyEtienne Champetier2022-03-141-1/+1
| | | | Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* olsrd: add iptables as dependencyNick Hainke2022-03-061-1/+1
| | | | | | | | | | | | | | | | | | 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>
* olsrd: fix setting default interface configNick Hainke2022-02-131-2/+3
| | | | | | The IPC should apply the "InterfaceDefaults". Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: add ubus ipc integration to olsrdNick Hainke2022-01-166-1/+3726
| | | | | | | | | | | | | 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>
* olsrd: fix meshing via wireguard tunnelsNick Hainke2022-01-081-0/+4
| | | | | | | 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>
* olsrd: update to 21-10-06Nick Hainke2021-11-061-3/+3
| | | | | | | - 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>
* Revert "olsrd: remove pud"Nick Hainke2021-11-061-4/+4
| | | | | | This reverts commit 2ac3accf36db53906ccb081dcbe6fafd05beaa6d. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: remove pudNick Hainke2021-10-281-4/+4
| | | | | | | 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>
* olsrd: wait for wireless to initialize before startingPerry Melange2021-10-132-0/+28
| | | | | | | | | | 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>
* olsrd: rename general to procdNick Hainke2021-08-014-8/+8
| | | | | | It was requested to name the section "procd". Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: make respawn_threshold configurableNick Hainke2021-08-014-8/+14
| | | | | | | | | | 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>
* olsrd: improve respawn settingsTobias Schwarz2021-07-314-3/+27
| | | | | | | | | | | | 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>
* olsrd: add olsrd-neigh.shMartin Hübner2021-07-112-0/+121
| | | | | | | | | 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>
* olsrd: fix olsrd starting before networkNick Hainke2021-07-072-0/+23
| | | | | | | | | | | | | | | | | | 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>
* olsrd: reload if config changed via uciNick Hainke2021-06-232-0/+6
| | | | | | | Fixes: https://github.com/openwrt/luci/issues/5139 Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: update to 2021-06-21Nick Hainke2021-06-122-634/+3
| | | | | | | - filtergw: add plugin allow to allow/block gateways (even smartgateway) Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: switch to procdNick Hainke2021-06-115-109/+114
| | | | Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: use SPDXNick Hainke2021-06-091-3/+1
| | | | | | Use SPDX license headers to be machine readable. Signed-off-by: Nick Hainke <vincent@systemli.org>
* Revert "olsrd: use SPDX and bump copyright"Nick Hainke2021-06-091-2/+4
| | | | | | This reverts commit a46eb8b8426c023bf502ed04671fa416ebc98de5. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: use SPDX and bump copyrightNick Hainke2021-06-081-4/+2
| | | | | | | 1) Use SPDX license headers to be machine readable. 2) Update copyright to 2021. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: update to 2021-06-08Nick Hainke2021-06-081-3/+3
| | | | | | - bsd: allow use of an alternative routing table on OpenBSD Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: only pud depends on libgpsNick Hainke2021-06-071-2/+2
| | | | | | | As a workaround for the glibc-fix the dependency on libgps was moved to olsrd. However, only pud is using this library. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: update to 2021-06-07Nick Hainke2021-06-071-6/+4
| | | | | | - pud: fix openwrt glibc compilation Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: add filtergw pluginNick Hainke2021-06-062-1/+645
| | | | | | | | | | | The plugin adds a possibility to filter out gateway HNAs. This can be very handy e.g. for faulty nodes. A gateway can be taken out directly on a central node and all traffic is then redirected. Also the underlying smart gateways are adapted. Currently the link multiplier is often used to control a faulty node, but it is not necessarily the best way to do so. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: only compile pud for muslNick Hainke2021-06-061-3/+5
| | | | | | | Compiling pud on glibc results in errors. Do not compile it util it is fixed upstream. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: update olsrd to 2021-06-01Nick Hainke2021-06-065-41/+3
| | | | | | | | | | Update olsrd to new version. Remove upstreamed patches: - 010-musl.patch - 011-bison.patch - 012-gpsd.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: add me as maintainerNick Hainke2021-06-061-0/+1
| | | | | | | I am now the maintainer of olsrd. Add me also as maintainer in the openwrt-routing feed. Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: use $(AUTORELEASE)Nick Hainke2021-06-061-1/+1
| | | | Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: adapt gpsdclient.c to new gpsd libNick Hainke2020-10-031-0/+11
| | | | | | | | | | As mentioned in gpsd.h: "Move gps_data_t->status to gps_fix_t.status for better fix merging" Commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514 Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: migrate to using bison 3.7.1pmelange2020-08-272-1/+17
| | | | | | | | | | | | | | | | With the upgrade to bison 3.7.1 (openwrt commit 1cf842d) building olsrd was failing. Now, instead of the contents of header files being directly inserted into the generated source files, they are instead included with a #include directive. The local.mk has, until now, done some magic with *-tmp files, which is not longer necessary and even causes builds to fail. src/cfgparser/oparse.c:265:10: fatal error: oparse.h-tmp: No such file or directory #include "oparse.h-tmp" Suggested-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Perry Melange <isprotejesvalkata@gmail.com>
* olsrd: fix compilation with musl 1.2.xRosen Penev2020-08-112-1/+12
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* olsrd: bump to latest versionNick Hainke2020-06-181-6/+5
| | | | | | Fixes https://github.com/openwrt-routing/packages/issues/547 Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: update to 0.9.8Russell Senior2019-08-121-2/+2
| | | | | | Allows building against gpsd-3.19. Signed-off-by: Russell Senior <russell@personaltelco.net>
* [OLSRd] Bump OLSRd version to 0.9.7pmelange2019-03-231-2/+2
| | | | | | This patch bumps OLSRd from 0.9.6.2 to 0.9.7 (released 06-March-2019) Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
* treewide: Basic cleanup and alignment to package guidelines (#383)Daniel Engberg2018-07-121-1/+0
| | | | | | | This is a very basic cleanup, several packages needs more work but this at least drops git for https and removes the use of PKG_MD5SUM and some minor fixes. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* Merge pull request #300 from OLSR/masterBastian Bittorf2017-12-131-1/+1
|\ | | | | olsrd: pud: does not depend on ncurses
| * olsrd: pud: does not depend on ncursesFerry Huberts2017-06-071-1/+1
| | | | | | | | | | | | BTW According to Matthias there is no ncurses package either way! Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
* | [olsr] Bump olsr version to 0.9.6.2Thomas Huehn2017-10-131-2/+2
|/ | | | | | | | | | | This patch bumps olsr version from 0.9.6.1 to 0.9.6.2 One major bugfix comes with the newer version, which is quite relevant for our Freifunk mesh network: the feature LinkQualityMult was not working in 0.9.6.1 and got fixed in the new version. Tested on 92 productive mesh nodes running current LEDE trunk . Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
* olsrd: find_most_recent_plugin_libary() fix sortingBastian Bittorf2017-02-241-2/+3
|
* olsrd: find_most_recent_plugin_libary() fix input with 'exact' filenamesBastian Bittorf2017-02-141-0/+1
|
* olsrd: init-script: fix new plugin-lazymodeBastian Bittorf2017-02-131-3/+8
| | | | | | make sure that we do not select 'olsrd_dyn_gw_plain.so.0.4' if user wants 'olsrd_dyn_gw.so.0.5'
* olsr: hotplug: fix a wrong grep (never successful) in ↵Bastian Bittorf2017-02-121-2/+2
| | | | olsrd_interface_already_in_config()
* olsr: fix minor complain from 'shellcheck'Bastian Bittorf2017-02-121-11/+19
|