Commit Graph

15 Commits

Author SHA1 Message Date
n0mjs710 4657aff2a6 several random bugs - thanks Heiko Amft, DL1BZ for finding them! 2018-12-11 14:31:41 -06:00
Cort Buffington 479eb5a9bb Added BSD style copyright notice 2018-11-25 10:36:14 -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
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
Cort Buffington ca2aaa5d59 Merge branch 'socket_address' 2018-09-05 11:15:39 -05:00
Cort Buffington a8dd60c3b4 Finish adding Registration ACL to all apps
renamed build_acl and the associated ACL to build_reg_acl and REG_ACL
to disambiguate from bridge_all and confbridge subscriber ACLs. Added
the registration ACL feature to all applications.
2018-08-23 19:34:31 -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 416ab12c5f Updated all applications to support socket reporting 2018-07-03 21:51:20 -05:00
Cort Buffington dc826bac59 Added per-timeslot ACLs
WILL BREAK OLD CONFIGURATIONS!!!
2018-06-19 16:03:08 -05:00
Cort Buffington d4c312eaee Fixed logging problem from previous updates 2018-02-13 19:16:45 -06:00
Cort Buffington bb0e2c5020 Fix Log Message 2018-02-13 19:02:41 -06:00
Cort Buffington 119f43cd59 ACL Features Added
This makes hb_bridge_all a more capable program with multiple ingress
and egress ACLs for SID and TGID filtering. It’s not as simple as
“blacklist” and “whitelist” since MULTIPLE endpoints exist, unlike an
MMDVM that has only one connection.
2018-02-13 18:59:44 -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 6bff580a6f fix class name 2016-12-22 12:57:17 -06:00
Cort Buffington 0652abef02 Descriptions added (below copyright and license area) 2016-12-19 08:36:17 -06:00