Skip to content

fix/port bugfixes from r06a02_dev to master - #145

Merged
gatekeep merged 4 commits into
masterfrom
fix/cherry-picked-r06a02-fixes
Nov 28, 2026
Merged

gatekeep merged 4 commits into
masterfrom
fix/cherry-picked-r06a02-fixes

Conversation

@gatekeep

Copy link
Copy Markdown
Member

Summary

  • Correct issue with emergency bit error correction for V.24 modems.
  • Pass P25 network PDU messages through the non-authoritative receive preprocessor to the data handler, since PDU messages carry SAP and PDU length in the srcId/dstId/LCO header space and were being denied as a destination mismatch on slaved voice channels.
  • Correct issue where a dropped WireGuard endpoint causing a failed datagram, causes a sendmmsg batch to drops every remaining datagram in the batch.

Component(s)

Which part(s) of the project does this affect?

  • dvmhost
  • dvmfne
  • dvmbridge
  • dvmpatch
  • dvmcmd
  • sysview
  • tged
  • peered
  • Other (explain below)

Type of change

  • Bug fix
  • Refactor / cleanup
  • Performance improvement
  • Documentation update
  • Build / tooling change

Related issues

6e4c63d
d3cc183
aed5469

Build & test notes

Debian 12
x86_64

dvmtests result:
All tests passed (25148 assertions in 707 test cases)

Logs / output (if applicable)

N/A

Checklist

  • Change is scoped and focused
  • Existing functionality verified
  • No unrelated refactors included
  • Documentation updated if needed
  • No secrets or credentials included

Notes for maintainers

N/A

gatekeep and others added 4 commits November 28, 2026 08:29
…reprocessor to the data handler, since PDU messages carry SAP and PDU length in the srcId/dstId/LCO header space and were being denied as a destination mismatch on slaved voice channels; (#143)
…emaining datagram in the batch; (#144)

sendmmsg() returns -1 only when the first message of the call fails, so the
batch write treated any error as fatal and abandoned every message after it.
On an FNE those messages are frames for other peers, so one peer whose tunnel
returns EDESTADDRREQ (a WireGuard peer with no current endpoint) silenced
voice traffic to every peer queued behind it.

The failed message is now dropped and the rest of the batch is still sent.
Each drop advances the batch, so a persistent error cannot loop. The write
still returns false with lenWritten = -1 when any datagram was dropped.

Logging changes: the first failure in a batch is logged with its destination
address and port ("dropping packet N of M to <addr>:<port>", replacing "after
sending N of M packet"), and further drops in the same batch are reported in
one "Dropped N of M packet from sendmmsg batch" summary, so a socket-wide
error does not log once per datagram. The "Required multiple writes ... (this
shouldn't happen!)" warning, which now fires on every handled mid-batch
failure, is reworded and moved to debug.
@gatekeep
gatekeep merged commit a5ccc51 into master Nov 28, 2026
6 checks passed
@gatekeep
gatekeep deleted the fix/cherry-picked-r06a02-fixes branch November 28, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants