Inbound confirmed PDUs of more than one block failed the packet CRC-32 on
every attempt. The receive path stepped 19 bytes per block on the wire and
stored 18 byte chunks, while storeConvertedRxPDU() reads 16 bytes of user
data per block, so every block after the first was misaligned.
A confirmed block on the wire is a sequence/flag byte, 16 bytes of user data
and a reserved byte (DFSI_PDU_CONFIRMED_BLOCK_LENGTH_BYTES). The single,
header and continuation frame cases now copy the user data through one
bounded helper, and reject a frame that is too short for its block count.
The single frame layout is checked against a frame captured from a Quantar,
using the subscriber's own packet CRC-32 and the IPv4 header checksum. No
capture of a header or continuation frame was available; those follow the
layout the transmit path generates.
A transaction whose remaining blocks never arrive (a lost datagram, or a
host that forwards a response header without its announced data block)
otherwise rejects every later PDU from that peer until the peer has been
silent long enough for the stale-call sweep to drop it.
* key up an idle P25 voice channel holding an SNDCP data permit so subscribers waiting for outbound frame sync can transmit their packet;
A subscriber granted an SNDCP data channel listens for outbound frame sync
before it sends its packet. A non-authoritative voice channel that only
holds the data permit stays unkeyed, so some subscribers (EFJ) never
transmit and the grant expires.
While a data permit is held and the channel is otherwise idle (no RF or
network traffic and no frame already queued), the voice channel now fills
the air with TDUs, checked every 15 ms. A TDU carries frame sync and
all-idle status symbols, advertising the inbound channel as free. The
normal control channel unpermit ends it; a 30 second permit hold (twice
the CC grant timer) stops it if that unpermit is lost.
* end the SNDCP data channel keep-alive once the SU transmits on the grant and never fill the native-modem PDU pacing guard;
The keep-alive only checked the frame queue, so while an outbound PDU was
held by the native-modem pacing guard it kept writing TDUs ahead of it, and
it kept the channel keyed after the SU had already started its exchange.
With the keep-alive running this way an 8-block outbound PDU drew repeated
ACK RETRY responses until it was declared undeliverable.
The keep-alive now stops for the rest of the grant as soon as the RF state
leaves listening (the SU no longer needs outbound frame sync), and it skips
any tick while a PDU is held or the pacing guard is still running. A new
data grant starts it again.
* forward the data block of an SU response packet to the network along with its header, so an ACK RETRY (selective retry) reaches the FNE as the complete transaction its blocks-to-follow announces;
The network PDU frame carries the response header's blocks to follow, but
only the header block was written. The FNE then waited for a block that
never arrived and rejected every later PDU from the voice channel as a
conflicting duplicate header, dropping SU uplinks (including KMM Hello)
and SU link ACKs. The block extraction lives in
Data::getResponseDataBlock().
* Renamed functions to not use the term 'clock'
* Removed m_permittedData and restored the original SNDCP permit check, but keep state