Commit Graph

815 Commits

Author SHA1 Message Date
Matthias Schiffer 31e2000604
treewide: remove redundant definitions from package Makefiles 2018-03-07 20:51:48 +01:00
Matthias Schiffer 53a659abf8
lua-geolocate: add package for WLAN-based geolocation based on openwifi.su
Based-on-patch-by: Jan-Tarek Butt <tarek@ring0.de>
2018-02-27 18:14:07 +01:00
Tobias Schramm 5c6476ea58
autoupdater: use safe allocation functions
Give the user a better error message when allocations fail by using our
checked allocation functions.

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[Matthias Schiffer: squash, use safe_realloc]
2018-02-22 02:39:48 +01:00
Tobias Schramm 3566cabef5
autoupdater: add safe allocation functions
safe_malloc() and safe_realloc() are wrappers around malloc() and realloc()
than abort the process if the memory allocation fails.

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[Matthias Schiffer: add safe_realloc()]
2018-02-22 02:39:47 +01:00
Tobias Schramm 0b61fee98e
autoupdater: Check if allocation of uci contect was successfull
Previously the return value of uci_alloc_context was not checked leading
to a possible null ptr dereference

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[Matthias Schiffer: use abort()]
2018-02-22 02:27:57 +01:00
Tobias c802276581 autoupdater: uclient: fix nullpointer dereference on invalid URL (#183)
Previously supplying an invalid url for download would result in
uclient_new returning NULL and crash the autoupdater as soon as
cl->priv is accessed.

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
2018-02-19 17:10:44 +01:00
Matthias Schiffer 7abd688e6a
sse-multiplex: don't use stdio FILE I/O for nonblocking sockets
The behaviour is not defined; musl loses parts of long data lines. Change
code to work with file descriptors directly and handle buffering ourselves.
2018-02-13 22:21:46 +01:00
Matthias Schiffer 9a6ad5ce84
batman-adv-legacy: update to 2018-01-23 git version
695bfbc6 batman-adv: invalidate checksum on fragment reassembly
2018-01-23 12:09:39 +01:00
Matthias Schiffer ea9c5dc09e
batman-adv-legacy: update to 2018-01-22 git version
62f94b93 batman-adv: fix packet checksum in receive path
a5bfc266 batman-adv: Fix inconsistent teardown and release of private netdev state.
226f08ce batman-adv: Remove usage of net_device last_rx member
2018-01-22 20:34:18 +01:00
Matthias Schiffer fc194bc7c8
autoupdater: uclient: add error handling in connection setup
Avoids a segfault when the connection fails early.
2018-01-22 10:57:35 +01:00
Matthias Schiffer d14cedea14
lua-jsonc: new package
This package replaces luci-lib-jsonc, and also provides utility functions
for use from other C libraries.
2018-01-18 16:27:40 +01:00
T-X 309dacfa31 batman-adv-legacy: batctl: backport TL header lines fix (#181)
Backport of:

4aa06a7c "batctl: fix wrong header lines number for local translation table"

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2018-01-17 11:10:58 +01:00
Jan-Philipp Litza 49cb4b3fdb
autoupdater: new implementation
This new version of the autoupdater is implemented in C instead of Lua,
allowing us to interface with libuclient (HTTP downloads) and libecdsautil
(signature checks) directly instead of spawning external processes,
saving RAM and making error handling more robust.

[Matthias Schiffer: add commit message]
2018-01-13 00:22:27 +01:00
Matthias Schiffer 57c67964e2
tunneldigger: clean up version variables in Makefile
Add PKG_SOURCE_DATE and drop explicit PKG_VERSION to ensure strictly
increasing version numbers. In particular, PKG_VERSION must change on every
update so the new version is actually used.
2017-12-27 17:45:38 +01:00
Cyrus 90ecf80c6c tunneldigger: Update to newest upstream commit: (#178)
- Sync package version numbers (0.4.0 = vNext)
- Added cmake related patches to Makefile
2017-12-27 17:28:17 +01:00
Christof Schulze 8769d07c70
L3roamd bump (#180) -- use all-nodes mac 2017-12-22 16:12:43 +01:00
Christof Schulze 79583b37b0
l3roamd: bump version, fix memleaks, adjust output (#177) 2017-12-18 08:14:12 +01:00
Christof 030be550d7 l3roamd: bump version to 2017-12-11 2017-12-11 21:45:13 +01:00
Christof ffd793adcf libbabelhelper: update version 2017-12-09 01:43:27 +01:00
Christof Schulze e0e4fa2d5b
mmfd: bump version (compile fix) (#176) 2017-12-07 23:09:30 +01:00
Christof Schulze f04be66e0a
Merge pull request #175 from freifunk-ffm/christf_babelbuild-bump-versions
bumping versions of l3roamd, mmfd, libbabelhelper
2017-12-07 01:07:17 +01:00
Christof Schulze 25123fe6a1 bumping versions of l3roamd, mmfd, libbabelhelper 2017-12-07 01:06:25 +01:00
Matthias Schiffer 16bf1f9ff1
libpacketmark: fix call of initialization function (again)
The previous fix for ARM broke the constructor call on MIPS. Remove the
-nostartfiles linker flag to fix this.
2017-11-04 20:54:04 +01:00
Matthias Schiffer 5249974a3c
libpacketmark: fix call of initialization function
Rather than using the internal symbol _init, simply let the compiler handle
it by marking it as a constructor. This fixes running the initialization on
some architectures like ARM.
2017-10-25 14:17:33 +02:00
Matthias Schiffer 6d2b807fba
lua-simple-uci: fix set()/tset()/section() with empty lists 2017-10-19 02:12:14 +02:00
Christof Schulze 81e23cf0c9 Merge pull request #173 from freifunk-ffm/christf_bump_libbabelhelper
use latest libbabelhelper and mmfd
2017-10-18 20:20:45 +02:00
Christof Schulze 57332536db libbabelhelper: adapt to new install paths due to package version change 2017-10-18 19:43:23 +02:00
Christof Schulze ce7f69ae4c use latest libbabelhelper 2017-10-18 19:43:23 +02:00
Christof Schulze f76cfa8469 mmfd: bump version to pull in latest adaptions to libbabelhelper 2017-10-18 19:43:20 +02:00
Christof Schulze 8e87b15946 Merge pull request #172 from freifunk-ffm/christf_bump_mmfd
mmfd: bump version to pull in latest adaptions to libbabelhelper
2017-10-08 21:39:25 +02:00
Christof Schulze b4f97fb259 mmfd: bump version to pull in latest adaptions to libbabelhelper 2017-10-08 21:29:11 +02:00
Thomas Weißschuh 706bef6245 respondd: add diagnostics about failed module load (#171) 2017-09-28 12:35:20 +02:00
Christof Schulze ad8918376e Merge pull request #169 from freifunk-ffm/christf_add-libbabelhelper
libbabelhelper: add initial version
2017-09-25 00:41:14 +02:00
Christof Schulze fc5965bfbf Merge pull request #170 from freifunk-ffm/christf_bump-mmfd
mmfd: bump version
2017-09-25 00:40:45 +02:00
Christof Schulze 4f1a0c033f mmfd: bump version 2017-09-24 22:41:03 +02:00
Christof Schulze f5cc0fb145 libbabelhelper: add initial version 2017-09-24 22:39:20 +02:00
Matthias Schiffer 8b65619f59
lua-simple-uci: delete option when using Cursor:set() with nil value
Setting the section type when using set() with only two arguments is a very
confusing behaviour. section() can be used without a value table for the
same result.

Deleting the option instead will make set() and get() symmetric and will
allow to simplify some code that needed to check for nil to call set() or
delete() before.
2017-08-08 04:31:26 +02:00
Matthias Schiffer c9fa162ebb
lua-simple-uci: remove support for obsolete alternative boolean strings 2017-08-08 04:30:04 +02:00
Christof Schulze 0fbef92e84 mmfd: version bump (#168) 2017-07-26 23:28:34 +02:00
Jan-Philipp Litza 1a8fd4ba87 respondd-module-airtime: Give more helpful error messages 2017-04-30 18:03:40 +02:00
Christof Schulze 71823713c0 l3roamd: bump version to include socket (#165) 2017-03-27 22:09:54 +02:00
Matthias Schiffer 0efcccd3ef Merge pull request #160 from FreifunkBremen/master
respondd-module-airtime: Improve error handling
2017-03-02 16:31:56 +01:00
Matthias Schiffer cae8f9c4ce
autoupdater: fix indentation 2017-02-25 18:09:39 +01:00
Matthias Schiffer 6a2d288006
autoupdater: use SHA256 checksums instead of SHA512
We already use SHA256 for the manifest signature, so we'll be able to unify
the implementations after some refactoring.
2017-02-25 01:05:32 +01:00
Matthias Schiffer ac55ad56b5
autoupdater: convert spaces to tabs 2017-02-24 23:04:05 +01:00
Jan-Philipp Litza 463f872844 autoupdater: add possibility to specify mirrors on commandline (#123) 2017-02-24 11:46:43 +01:00
Matthias Schiffer c7de283d44
batman-adv-legacy: update to latest git master 2017-02-24 00:13:51 +01:00
Matthias Schiffer 7d4d64354d
Update batman-adv-legacy to latest git master 2017-02-23 16:20:39 +01:00
Christof Schulze 5be278cd42 net/l3roamd: add basic package (#162) 2017-02-23 13:25:24 +01:00
Christof Schulze c78986cbc9 net/mmfd: add experimental mmfd package (#161) 2017-02-23 12:43:45 +01:00