Commit Graph

61 Commits

Author SHA1 Message Date
Simon
eab8c03cce Tidy up BCSQ logging 2021-04-13 12:12:44 +01:00
Simon
88334eaaf5 Adds support for new Bridge Control OPCODE - BCSQ
BCSQ is Source Quench or Squelch

When a stream id is received from more than one source on a TG
the system sends a BCSQ to all of the non-first systems to ask them
to stop sending this stream ID. This reduces network and CPU load. Also
packets can't loop of they arent even received!

Squashed commit of the following:

commit e5ba9ece5d84e56096c459139fb39eba16249f96
Author: Simon <simon@gb7fr.org.uk>
Date:   Mon Apr 12 23:16:30 2021 +0100

    Tidy up log handling for streams

commit fc1e4bd91f0e576e8c58e84cf4b96f00ce6ec933
Author: Simon <simon@gb7fr.org.uk>
Date:   Mon Apr 12 22:56:45 2021 +0100

    Fix target port (BCKA)

commit 27e046e5efe744679c7652f65135cf3129481092
Author: Simon <simon@gb7fr.org.uk>
Date:   Mon Apr 12 22:50:35 2021 +0100

    Handle keyerror

commit 99c660fa813a300940b16e55d840218f1868cadb
Author: Simon <simon@gb7fr.org.uk>
Date:   Mon Apr 12 22:45:05 2021 +0100

    Stream trimmer for BCSQ

commit 9d6102be13813b27b752192e29e94d5eafbbb934
Author: Simon <simon@gb7fr.org.uk>
Date:   Mon Apr 12 21:32:54 2021 +0100

    Brack

commit 2f8a8cf620153cb0138e970c0dcd85328a47521c
Merge: f77a68a 17b6968
Author: Simon <simon@gb7fr.org.uk>
Date:   Sun Apr 11 22:16:38 2021 +0100

    Merge branch 'master' into bcsq

commit f77a68a96297fe050609b8ee5fb56b0866ec78f4
Merge: 7f4c6f5 9a3e5fb
Author: Simon <simon@gb7fr.org.uk>
Date:   Fri Apr 9 01:39:54 2021 +0100

    Merge branch 'master' into bcsq

commit 7f4c6f5375b589aa78e74f0002448afe95a625a2
Author: Simon <simon@gb7fr.org.uk>
Date:   Thu Apr 8 18:35:08 2021 +0100

    c

commit c0904242e0f532c26e33bdd9cba8d1bea5329abc
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 19:05:40 2021 +0100

    only try to quench the source once

commit 2748d0cf7c5557522a5b2d0d9e3b37e294711910
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 18:56:05 2021 +0100

    Comment out check for enahnced to tes

commit fa43a09db73862343f0f70a367786c4d77aaf9b9
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 18:51:19 2021 +0100

    Dst id not tgid

commit f02df6edf10cfa936147b0862671ed949a820785
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 18:48:44 2021 +0100

    More BCSQ

commit adf3bb4059f0710848f8e3349722141836889c41
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 18:44:15 2021 +0100

    more BCKA fixes

commit b4dc518d9b74a0d8c83b3b1bb17d7de4d04b9915
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 18:42:13 2021 +0100

    Fix broken BKCA

commit 637d772dbadb346ad49d5b80d8299c13b0fbfc79
Author: Simon <simon@gb7fr.org.uk>
Date:   Tue Apr 6 18:38:17 2021 +0100

    More work on BCSQ
2021-04-12 23:28:01 +01:00
Simon
919b7842da Tidy up sockaddr update from keepalives 2021-04-10 01:13:00 +01:00
Simon
cee96e1b96 Fix typo in _config 2021-04-08 18:35:48 +01:00
Simon
94e4d6251c Tidy up BCKA logging 2021-04-04 19:46:42 +01:00
Simon
d2d2317a0b Docker changes source port too 2021-04-04 19:44:44 +01:00
Simon
6b2b39f5e1 Log IP and port for bcka debugging 2021-04-04 19:42:25 +01:00
Simon
7303cdcbc8 HE 2021-04-04 19:23:30 +01:00
Simon
62f0cdc97b Merge branch 'bcka' 2021-04-04 18:42:09 +01:00
Simon
53c1958aec Dynamic IP update:
Using BCKA (Extended OBP KeepAlives):

When an authenticated keepalive is received from a different IP but
on the same port, we update the IP for the OpenBridge. This means, we can
handle dynamic IP seamlessly!
2021-04-04 18:39:16 +01:00
Simon
dda0470ff2 New option - ENHANCED_OBP
Extends OpenBridge protocol

Added authenticated KeepAlives to protocol.
2021-04-04 18:19:28 +01:00
Simon
4fd9ada6da Comment out BCKA loop as I will carry on with this in BCKA branch 2021-04-04 18:02:34 +01:00
Simon
b096d5dfa5 Fix bcka 2021-04-04 17:44:29 +01:00
Simon
56a0ee4dc6 rstrip() 2021-04-03 17:19:24 +01:00
Simon
03b3f78f5d Decode strings 2021-04-03 17:15:23 +01:00
Simon
19965158ae Anothet T 2021-04-03 17:10:24 +01:00
Simon
d0d61e5573 Typo 2021-04-03 17:05:26 +01:00
Simon
deaef627c6 Move SW and PKGID to the right place 2021-04-03 17:04:30 +01:00
Simon
90f01a7751 Report package ID in logs 2021-04-03 16:59:44 +01:00
Simon
0261c04ede When using a GENERATOR config, reset HBP options to default on client logout 2021-03-21 17:22:50 +00:00
Simon
1babf7e18a Add RELAX_CHECKS to OPENBRIDGE definitions
This disables source IP and port checking
to make OBP play nice with Docker.

Note, it *really* is a good idea to use a PASSPHRASE with this!
2021-02-20 22:02:44 +00:00
Simon
e2dfeb15b0 Tidy up OBP HMAC error logging 2021-02-14 19:02:07 +00:00
Simon
fb45584aab Revert "Remove "to" from linked messages so it at least makes sense"
This reverts commit e882b4226b.
2021-02-09 09:37:44 +00:00
Simon
e882b4226b Remove "to" from linked messages so it at least makes sense
for all languages and doesn't cause to - two confusion
2021-02-08 14:41:23 +00:00
root
66cdbce0d0 T 2021-02-08 00:34:53 +00:00
Simon
91fe2e6f9d Get rid of Semaphores completely. 2021-01-27 18:54:31 +00:00
Simon
d3bc7fe5d8 All blocking code removed from main thread
What was I actually thinking ?!?!?
2021-01-27 18:47:55 +00:00
Simon
f8bd5b00df Allow null passphrase for MASTER logins
New config options for this in GLOBAL config section

If pashphrase is null and this option is set, login will always succeed
2021-01-23 11:43:56 +00:00
Simon
f671a9bc51 Gracefuly acknowledge DMRA packets 2021-01-18 14:28:37 +00:00
Simon
7193665086 Delete options on logout, nit just timeout 2021-01-17 20:46:58 +00:00
Simon
7c65ec74c5 Preparing for v1 release 2021-01-07 18:40:15 +00:00
Simon
2d34b683a5 Typos in RPTO handling 2021-01-07 00:48:19 +00:00
Simon
79a2dd1099 Fix missing master maintainance loop bug (peers not timing out) 2021-01-06 01:38:09 +00:00
Simon
e4f1a932c0 Add some locking around peers 2021-01-04 23:09:48 +00:00
Simon
870208de8e Always allow re-login from an existing peer 2020-12-28 13:41:57 +00:00
Simon
0e5e91850c Add support for HBP options line 2020-12-27 17:32:38 +00:00
Simon
28e4800283 Add HBP Options (RPTO) handling 2020-12-23 00:31:27 +00:00
Simon
26eeb9fbba Another try at reflectors 2020-12-13 18:35:23 +00:00
Simon
ec755dcb26 Reduce logging 2020-12-13 16:15:25 +00:00
Simon
a3c1f1182f Fix for packet dupes (currently debugging enabled) 2020-12-13 15:17:35 +00:00
Simon
ef498d4082 Add a little debug to send config (reports) 2020-11-09 15:57:59 +00:00
Simon
9f3cc47634 remove unneeded print statement used for debugging 2020-11-07 17:09:41 +00:00
Simon
f5f87d540b Add more silence padding to voice 2020-11-07 17:03:40 +00:00
n0mjs710
e1174e6aba Added IP address logging for denied registration 2020-03-09 13:28:11 -05:00
Cort Buffington
ef4514b8e0 updated commented debugging message at line #355 to remove unnecessary type conversion for _seq 2019-12-15 16:55:19 +00:00
n0mjs710
2ef0dfcd74 Fix ACL logging - SLOT specifig logging had quietly been broken 2019-09-25 14:36:20 -05:00
Andy Taylor
02c605dab7 Removed timers, add disconnect/reconnect to make the conntion more reliable 2019-06-19 15:03:29 +00:00
Andy Taylor
bce4e01775 Randomisation of the Stream ID 2019-06-19 14:49:52 +00:00
Andy Taylor
aa7fea86ba Add packet generation for XLX master module selection 2019-06-19 12:15:21 +00:00
Andy Taylor
24c201ffc2 Add basic XLX support 2019-06-19 07:32:44 +00:00