Commit Graph

5 Commits

Author SHA1 Message Date
wbokslag 167c2d7e9a fixed import warnings for stdbool on some gcc versions
Change-Id: I979a95eae70d839e20434cc7f08c196c162671a8
2023-07-26 16:59:57 +02:00
wbokslag 1f48ec8627 added support for fill bits and basic link defragmentation (also thanks to SQ5BPF)
The upper mac now maintains a defragmentation buffer for each timeslot. Resources with length -1 (fragmentation start) are added to the buf for that slot, further mac/frag frames are appended. When a mac/end is encountered, the reconstructed l2 message is passed to rx_tm_sdu. The tetra_llc_pdu struct now uses a uint32_t for tl_sdu_len in order to account for the possibly longer sdus. Fill bits processing was required in order to reliably determine the end of a MAC PDU.

Change-Id: I41c9438b0b12c2fac9dff1b226eec5b33f30fbb4
2022-09-22 11:46:29 +02:00
wbokslag 3fba49ead4 Added basic link FCS validation in LLC
tetra_llc_pdu.c now parses the FCS (Frame Check Sequence) for basic link pdus
that use it. Some changes were made to the tetra_resrc_decoded struct
definition. The have_fcs field designates the FCS was present, while the FCS
field holds the extracted FCS, and FCS_invalid designates an FCS was present
but differs from the computed value.

Change-Id: I81941110801d00ca06bdafdcc0a7afaf7b7617d3
2022-08-02 12:49:39 +02:00
Harald Welte ee7a645ca4 Add LLC defragmentation + SDNCP output via tun device
this allows us to look at IP messages contained in SNDCP
2011-05-27 09:37:06 +02:00
Harald Welte b5d6edbb82 Introduce LLC layer that has been completely missign so far
All our MM/CMCE/SNDCP 'decodes' were broken previously, as they
assumed that the MM/CMCE/SNDCP message follows immediately after the
MAC header.  However, there's the LLC layer in between.

This is just simple LLC decoding and does not do re-assembly yet.
2011-04-24 11:10:52 +02:00