Skip to content

Feature/end to end test tunneled mode#56

Open
dsilhavy wants to merge 9 commits intodevelopmentfrom
feature/endToEndTestTunneledMode
Open

Feature/end to end test tunneled mode#56
dsilhavy wants to merge 9 commits intodevelopmentfrom
feature/endToEndTestTunneledMode

Conversation

@dsilhavy
Copy link
Copy Markdown
Contributor

@dsilhavy dsilhavy commented Mar 12, 2026

Adds a test for transmission / reception when tunneled mode is configured as discussed in #55 (review). Detailed workflow:

  • Implements a reusable function run_end_to_end_scenario that receives a configuration object to decide if tunneled mode should be applied or not
  • For tunneling: The transmitter itself tunnels by wrapping each FLUTE payload in a synthetic inner IPv4+UDP packet and sending it to the tunnel endpoint, and the test’s bridge thread de-tunnels by receiving that packet, validating the inner headers, stripping them off, and forwarding only the original FLUTE bytes to the receiver.
  • The assertions verify that transmission completed, a file was received, the received metadata and payload exactly match the expected values, and in tunneled mode that the bridge actually processed packets without errors and kept the encapsulated payload within the configured size limit.

Note: The main code is AI generated with a few manual adjustements

@dsilhavy dsilhavy added this to the v0.12.3 milestone Mar 12, 2026
@dsilhavy dsilhavy added the enhancement New feature or request label Mar 12, 2026
@dsilhavy dsilhavy marked this pull request as ready for review March 20, 2026 09:50
…r alive until Boost.Asio calls the completion lambda.
…ebuild inner IPv4/UDP headers with byte-wise network-order checksum generation so tunneled end-to-end delivery passes reliably in release builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant