Commit Graph

136 Commits

Author SHA1 Message Date
Cort Buffington
8e799db954 Revert "Added connection time"
This reverts commit fbe44e468b.
2018-12-05 09:54:22 -06:00
Cort Buffington
fbe44e468b Added connection time 2018-12-05 08:59:52 -06:00
n0mjs710
bb65946a53 added call type for voice CSBK 2018-11-29 13:54:51 -06:00
n0mjs710
ff2818016d Lengthen OBP active queue length 2018-11-29 10:27:32 -06:00
n0mjs710
26137b898b Fixed master maintenance loop problem where I tried to delete an item from a dictionary I was iterating... silly me! 2018-11-27 11:21:46 -06:00
n0mjs710
17552507bb clean up 2018-11-26 11:52:45 -06:00
n0mjs710
bb4a8ff4d5 fix typo in peer limit check 2018-11-25 15:13:36 -06:00
Cort Buffington
83692f037c Add maximum peer limit for master instances 2018-11-25 15:07:55 -06:00
Cort Buffington
409bc05c3a Merge branch 'openbridge' of https://github.com/n0mjs710/HBlink into openbridge 2018-11-25 10:37:52 -06:00
Cort Buffington
479eb5a9bb Added BSD style copyright notice 2018-11-25 10:36:14 -06:00
n0mjs710
57f2623ba9 Merge branch 'openbridge' of https://github.com/n0mjs710/hblink into openbridge 2018-11-25 10:24:25 -06:00
n0mjs710
21406c3f80 fix logger bugs 2018-11-25 10:23:58 -06:00
Cort Buffington
7f9073ac5d Improved stream idendification for ACL logging 2018-11-25 10:22:43 -06:00
Cort Buffington
71e794dd52 modified logging methodology
configure a logger in each module, create the proper configuration in the __main__ of each file
2018-11-24 10:20:47 -06:00
n0mjs710
c5f2811a45 Update ACL logging info 2018-11-21 20:55:54 -06:00
n0mjs710
145d2f4537 Fixed typo in registration ACL processing 2018-11-21 10:58:16 -06:00
Cort Buffington
e5978f79ca Consolidate ACLs into HBlink.py
MAJOR CHANGE: Move ACLs into the main hblink.cfg configuraiton file and process all ingress ACLs in hblink.py itself. This means removing all other ACL processing from other programs, except hb_bridge_all.py which uses the main hblink.py ACLs for egress processing.
2018-11-21 10:24:19 -06:00
n0mjs710
fe8b2e3595 Incremental Updates - nothing big 2018-11-10 15:36:19 -06:00
Cort Buffington
3cfee4d009 OB to OB Support WORKING 2018-11-08 09:41:08 -06:00
Cort Buffington
f80331cc0f Fixed hmac calculation typo 2018-10-12 15:52:03 -05:00
Cort Buffington
cdbfcbb59c DO NOT USE THIS 2018-10-12 15:03:36 -05:00
Cort Buffington
bccf8d93dd PROGRESS - DOES NOT WORK
this commit is to get the test code moved to the testing server. It is not intended for people to try and download to use
2018-10-12 14:20:05 -05:00
Cort Buffington
3bb39eb19a Clean up OPENBRIDGE class 2018-09-26 15:48:48 -05:00
Cort Buffington
d1f827f1f2 Revert "Reorganization 1 class per system type"
This reverts commit b20309c776.
2018-09-26 15:41:00 -05:00
Cort Buffington
b20309c776 Reorganization 1 class per system type
Separating HBSYSTEM into HBMASTER and HBPEER to reduce memory footprint
and allow easier updating. Also cleaning up and normalizing the
OPENBRIDGE class to match the standard HB classes better.
2018-09-26 09:02:11 -05:00
Cort Buffington
5511a3b25a OpenBridge initial commit
The beginning of OpenBridge support. It does not yet do anything, so
downloading this is worthless for all but selected alpha testers.
2018-09-25 20:17:55 -05:00
Cort Buffington
d1af0560c4 INITIAL BRANCH COMMIT
0) CONFIGURATION FILES WILL NEED UPDATED TO CHANGE NAMING
CONFIGURATIONS!

1) Updated use of socket address instead of discrete IP/port. This will
be needed for socket address based validation and is faster… duh…
should have done this in the beginning.

2) Changed all references to “clients” as HBP systems to “peers”. This
sets the stage for having a peer_id and an originator_id for DMRD
packets.

3) Found and squashed a number of other random bugs, including the
registration ACL not working in confbridge or bridge_all.

4) router is now retired. confbridge is the future.
2018-08-07 16:05:27 -06:00
Cort Buffington
d633595d5e DMRD "repeater id" field always set to the "client"
If Master -> Client, it is the client’s radio ID, if it is Client ->
Master, it is the client radio ID. This appears to be the most correct
way, though admittedly not enforced, and might be better to use the
originating repeater/hotspot radio ID, but that’s for another day.
2018-08-02 14:21:51 -05:00
Cort Buffington
506c69008c Startup with no ACL defined 2018-07-29 18:09:44 -05:00
Cort Buffington
bbf1e68099 Added HBP Registration ACL
Works like the ACL in hb_confbridge.py
2018-07-11 18:55:45 -05:00
Cort Buffington
9210053572
Merge pull request #22 from krippendorf/patch-1
Missing config/logger args for class AMBE
2018-07-09 13:53:53 -05:00
Frank Werner-Krippendorf
2659ac06c6
Update hblink.py 2018-07-09 20:39:13 +02:00
Frank Werner-Krippendorf
57aeccce8a
Missing config/logger args for class AMBE 2018-07-09 19:12:57 +02:00
Cort Buffington
416ab12c5f Updated all applications to support socket reporting 2018-07-03 21:51:20 -05:00
Matthew
39b3950af8 Refactor validation to optimise code 2018-06-25 18:23:56 +01:00
Matthew
8558bbcaa3 Allows user to disable strict validation when connecting to master 2018-06-23 20:25:19 +01:00
Cort Buffington
2a4295743a Continued work on socket-based reporting
Status table and bridge table now work. Log messages are sending, but
formatting isn’t right yet, so they present as unknown messages.
2018-06-22 09:28:31 -05:00
Cort Buffington
cff902d3f9 Fixed missing ping count in master stats from clients 2018-06-21 11:45:37 -05:00
Cort Buffington
df264042d6 Adding hooks for socket reporting.
NOT WORKING YET… but it is a start
2018-06-19 16:02:38 -05:00
Cort Buffington
76daa63bd0 Fixing the WRONG commit. 2018-03-08 11:53:53 -06:00
Cort Buffington
ef0778f16e Verifying local changes 2018-03-08 11:42:44 -06:00
Cort Buffington
cae890522a Local commit for verification 2018-03-08 11:29:50 -06:00
Cort Buffington
a62630211f Bug Fix - Master -> Client
Was not re-writing the destination Radio ID on egress packets
2018-02-13 18:58:20 -06:00
Cort Buffington
afd1370143 Fix "limbo" state in the re-connection cycle
Changed the logic for determining when to “re-connect” to the master.
This will break if the ping timeout is set too low. Recommend keeping
it at 4-5 seconds.
2018-02-12 12:16:56 -06:00
Cort Buffington
050aad7cb3 HIGH PROFILE FIXES - Addresses Brandmeister disconnects.
Random:
  * Commented out per-packet debug logger lines (uncomment locally when needed)

Problems Fixed:

CLIENT MODE: hblink.py

hblink.py did not properly parse the radio_id in a MSTNAK message. We searched for
"MSTN" - 4 characters, and neglected to parse the radio ID at offset 6, after "MSTNAK"
instead of after 4, "MSTN".... rookie mistake:

  elif _command == 'MSTN':    # Actually MSTNAK -- a NACK from the master
  -                _radio_id = _data[4:8]
  +                _radio_id = _data[6:10]

hblink.py did not actually keep track of missed keep-alives correctly to reset a connection.
This has probably been fixed. At worst, no more broken than it was. Would like to have
some folks test it by breaking connectivty froma client to master and watch what happens.

Appears to work now.
2018-02-02 14:14:30 -06:00
Cort Buffington
bec229fbe7 Squashed minor logging bug
Minor logging bug when master receives and unknown command. It tried to
log _radio_id, but in this case, we don’t know the radio ID since we
can’t parse the HBP PDU.
2017-08-09 22:33:47 -05:00
Rob
9cb014a55c Added ability to send options to master 2016-12-26 21:36:22 -05:00
Rob
aafb321f8a Added ability to send options to master 2016-12-26 10:47:34 -05:00
Cort Buffington
0652abef02 Descriptions added (below copyright and license area) 2016-12-19 08:36:17 -06:00
Cort Buffington
6675f2e83d update 2016-12-17 11:40:43 -06:00