send and receive sequence number in UDP tunnels
Some checks are pending
Build Debian packages / bookworm (push) Waiting to run
Build Debian packages / bullseye (push) Waiting to run
Build Debian packages / trixie (push) Waiting to run
Build on FreeBSD / with UPnP (push) Waiting to run
Build on OSX / With USE_UPNP=no (push) Waiting to run
Build on OSX / With USE_UPNP=yes (push) Waiting to run
Build on Windows / clang-x86_64 (push) Waiting to run
Build on Windows / i686 (push) Waiting to run
Build on Windows / ucrt-x86_64 (push) Waiting to run
Build on Windows / x86_64 (push) Waiting to run
Build on Windows / CMake clang-x86_64 (push) Waiting to run
Build on Windows / CMake i686 (push) Waiting to run
Build on Windows / CMake ucrt-x86_64 (push) Waiting to run
Build on Windows / CMake x86_64 (push) Waiting to run
Build on Windows / XP (push) Waiting to run
Build on Ubuntu / Make with USE_UPNP=no (push) Waiting to run
Build on Ubuntu / Make with USE_UPNP=yes (push) Waiting to run
Build on Ubuntu / CMake with -DWITH_UPNP=OFF (push) Waiting to run
Build on Ubuntu / CMake with -DWITH_UPNP=ON (push) Waiting to run
Build containers / Building container for linux/amd64 (push) Waiting to run
Build containers / Building container for linux/arm64 (push) Waiting to run
Build containers / Building container for linux/arm/v7 (push) Waiting to run
Build containers / Building container for linux/386 (push) Waiting to run
Build containers / Pushing merged manifest (push) Blocked by required conditions

This commit is contained in:
orignal 2025-10-01 22:06:57 -04:00
parent dd029793e1
commit fffb68c5e0
5 changed files with 46 additions and 18 deletions

View file

@ -226,10 +226,10 @@ namespace datagram
}
}
}
uint16_t flags = bufbe16toh (buf + identityLen);
const uint8_t * flags = buf + identityLen;
size_t offset = identityLen + 2;
bool isOptions = false;
if (flags & DATAGRAM2_FLAG_OPTIONS)
if (flags[1] & DATAGRAM2_FLAG_OPTIONS)
{
isOptions = true;
m_Options.CleanUp ();
@ -250,7 +250,7 @@ namespace datagram
if (!verified)
{
std::shared_ptr<i2p::crypto::Verifier> transientVerifier;
if (flags & DATAGRAM2_FLAG_OFFLINE_SIGNATURE)
if (flags[1] & DATAGRAM2_FLAG_OFFLINE_SIGNATURE)
{
transientVerifier = i2p::data::ProcessOfflineSignature (&identity, buf, len, offset);
if (!transientVerifier)
@ -308,10 +308,10 @@ namespace datagram
auto r = FindReceiver(toPort);
if (r)
{
uint16_t flags = bufbe16toh (buf + 32);
const uint8_t * flags = buf + 32;
size_t offset = 34;
bool isOptions = false;
if (flags & DATAGRAM3_FLAG_OPTIONS)
if (flags[1] & DATAGRAM3_FLAG_OPTIONS)
{
isOptions = true;
m_Options.CleanUp ();