Skip to content

Commit 8134609

Browse files
committed
netstack/icmp: toggle use of icmp forwarder w experimental setting
1 parent f18cf88 commit 8134609

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

intra/netstack/icmpecho.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
)
1818

1919
const minICMPPacketSize = header.ICMPv4MinimumSize + header.IPv4MinimumSize
20-
const useIcmpForwarder = true
2120

2221
// const typicalICMPEchoPayloadSize = 64 // or 56
2322
// const expectedICMPPacketSize = header.IPv6MinimumSize + header.ICMPv6MinimumSize + typicalICMPEchoPayloadSize
@@ -85,6 +84,8 @@ func (r *icmpResponder) handle(h *icmpForwarder, nic tcpip.NICID, pkt *stack.Pac
8584
return
8685
}
8786

87+
useIcmpForwarder := settings.ExperimentalWireGuard.Load()
88+
8889
c := pkt.Clone()
8990
defer c.DecRef()
9091

0 commit comments

Comments
 (0)