mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 20:56:52 +01:00
backport v1.11: Recompute the transport checksum on self-forwarded packets (#1880)
* Recompute the transport checksum on self-forwarded packets (#1862)
(cherry picked from commit ec3304e3a9)
* try to backport
* fix miss backport
* backport anyFragment logic
* restore test
---------
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
This commit is contained in:
1 parent
501fda7a40
commit
b66c9bb362
10 files changed
+834
-24
No files matched your search
@@ -37,6 +37,7 @@ func (f *Interface) consumeInsidePacket(packet []byte, fwPacket *firewall.Packet
|
||||
// routes packets from the Nebula addr to the Nebula addr through the Nebula
|
||||
// TUN device.
|
||||
if immediatelyForwardToSelf {
|
||||
iputil.SetTransportChecksum(packet)
|
||||
_, err := f.readers[q].Write(packet)
|
||||
if err != nil {
|
||||
f.l.Error("Failed to forward to tun", "error", err)
|
||||
|
||||
Reference in new issue
Block a user