Skip to content

net_switch: build secret_hash header as a separate component#6795

Merged
OBattler merged 1 commit into
86Box:masterfrom
chungy:secret_hdr
Feb 10, 2026
Merged

net_switch: build secret_hash header as a separate component#6795
OBattler merged 1 commit into
86Box:masterfrom
chungy:secret_hdr

Conversation

@chungy

@chungy chungy commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The prior code did a memmove over the packet data, and in cases where a packet is completely full (large transfers under an MTU 1500, for instance), it would corrupt the data packet and nothing got transferred.

In its place, teach the code to build up the secret_hash header as a separate component and send a larger packet (by 32 bytes). The original packet remains intact and will get received by the intended target this way.

Checklist

The prior code did a memmove over the packet data, and in cases where
a packet is completely full (large transfers under an MTU 1500, for
instance), it would corrupt the data packet and nothing got
transferred.

In its place, teach the code to build up the secret_hash header as a
separate component and send a larger packet (by 32 bytes).  The
original packet remains intact and will get received by the intended
target this way.
@OBattler OBattler merged commit 08154d6 into 86Box:master Feb 10, 2026
45 checks passed
@chungy chungy deleted the secret_hdr branch February 10, 2026 22:15
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