Commit graph

36 commits

Author SHA1 Message Date
twy_2000
f7343a053c tcpsocket: implement client_read_cb with ustream_read my wheels are much worse than offical wheels. 2020-06-12 07:12:36 +02:00
Ian Clowes
292ccb01f2 test_storage: further refactoring, added test functionality, and TESTING.md to describe testing approach 2020-06-10 12:30:43 +02:00
David Woodhouse
bd35961de8 uci: truncate hostname at first dot
Oh, and stop at the size of the target buffer too.
2020-06-10 12:17:52 +02:00
Polynomialdivision
77619e9b18 ubus: use strncpy and add backwards compatibility 2020-06-09 13:00:07 +02:00
Polynomialdivision
ffa08dbccd ubus/uci/datastorage: add iface and hostname
The network overview now displays the interface name and hostname.
2020-06-09 11:19:56 +02:00
David Woodhouse
050c1d7fed tcpsocket: use fixed size and endianness for length prefix of network messages
We can't use host-dependent endianness for network traffic.
The size of size_t also varies from host to host so stick with uint32_t.

Fixes: #92
2020-06-08 13:19:21 +02:00
Polynomialdivision
534f786616 ubus: fix wrong parsing policy 2020-06-06 09:09:09 +02:00
Polynomialdivision
2151db28ef tcpsocket: fix debug msg format
Fixes: https://github.com/openwrt/packages/issues/12410
2020-06-05 11:08:50 +02:00
twy_2000
5ce4c978c8 ubus/datastorage: don't repeatedly ask devices for beacon reports if they don't support it 2020-06-01 18:47:00 +02:00
Polynomialdivision
71536468ff uci: fix loading of config 2020-06-01 10:15:58 +02:00
twy_2000
b5043ad98e utils/ubus: fix memory leak at blobmsg_format_json 2020-05-30 17:52:17 +02:00
Polynomialdivision
f603dde7f7 ubus: add local flag to network overview 2020-05-30 08:55:52 +02:00
Polynomialdivision
26745815e8 ubus: fix network overview 2020-05-30 08:48:33 +02:00
twy_2000
653ce9fa56 network/tcpsocket: make sure every msg is complete before handle 2020-05-29 22:51:28 +02:00
Ian Clowes
50d347c233 datastorage: refactor to support scalability testing 2020-05-28 00:29:15 +02:00
Polynomialdivision
3a6ef89998 ubus: addd empty aps
It was requested that DAWN should show the whole network, even
if no client is connected to an AP.
2020-05-27 11:17:26 +02:00
twy_2000
2d1a6f9c0c ubus: filter out global interface 2020-05-21 10:21:16 +02:00
twy_2000
73c7998967 ubus: make decide_function consist with configuration
in luci-app-dawn, if eval_probe_req is not ticked, eval_probe_req would be -1.
however, in c language, !(-1) is false.
Since only zero in if statement is false, non-zero number is true.
2020-05-20 15:06:47 +02:00
Polynomialdivision
b7fd0e648a dawn_iwinfo: fix whitespace 2020-05-18 22:36:20 +02:00
twy_2000
273178e05c dawn_iwinfo: indentation 2020-05-18 22:35:00 +02:00
twy_2000
3ff15b9894 dawn_iwinfo:iwinfo_finish(); 2020-05-18 22:34:45 +02:00
twy_2000
42c4e6e0b0 dawn_iwinfo: filter out global interface 2020-05-18 22:34:27 +02:00
twy_2000
b78a01bfb5 dawn_iwinfo: release iwinfo after usage 2020-05-10 10:22:18 +02:00
twy_2000
6bad02bed7 tcpsocket: fix port print 2020-05-10 09:51:48 +02:00
David Bauer
617080a7c9 ubus: only update TCP socket list when using TCP connections
DAWN currently tries to update it's list of TCP socket endpoints using
mDNS when it is configured to use UDP.

Only update the TCP socket list when DAWN is configured to use TCP
sockets.

Fix a identation mismatch along the way.
2020-04-30 10:56:47 +02:00
Polynomialdivision
2ff3b3017f remove unecessary params and debug output 2020-04-17 12:59:06 +02:00
Polynomialdivision
9c6bc1b2fe fix null mac in beacon-report 2020-04-17 12:58:21 +02:00
Polynomialdivision
a63c723e31 feed hostapd with nr reports 2020-04-17 09:46:12 +02:00
Polynomialdivision
1804d18bf5 allow disable beacon reports timer 2020-04-16 17:32:56 +02:00
Polynomialdivision
c7fc2f9c96 print iwinfo debug not to stderr 2020-04-16 15:41:46 +02:00
Polynomialdivision
0fbef59869 implement 802.11v/k 2020-04-16 15:39:29 +02:00
Polynomialdivision
899eae05f0 survive reboot 2020-04-15 17:37:59 +02:00
Polynomialdivision
5709b96a4d dawn: fix typos 2020-04-10 10:26:54 +02:00
Polynomialdivision
a25bb91f37 dawn: change __unit8_t to uint8_t
Fixed #11689.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-03-29 10:57:45 +02:00
Polynomialdivision
b967c1e0b6 dawn: fix missing stdint.h include 2020-03-28 21:14:17 +01:00
Polynomialdivision
f03f55ff92 first version 2020-03-23 21:22:21 +01:00