mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 16:36:52 +01:00
unslop some comments
This commit is contained in:
1 parent
809d8baf47
commit
3e2a4499a5
7 files changed
+24
-63
No files matched your search
@@ -180,13 +180,8 @@ func Test_CreateRejectPacket_NoICMPError(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Test_CreateRejectPacket_RespectsCap guards against H2: with UDP GRO the
|
||||
// scratch buffer reused to build a reject is a single coalesced segment inside
|
||||
// a shared recvmmsg row. Its length covers just that segment, but an uncapped
|
||||
// slice's capacity runs on into the next, not-yet-processed segment. Because
|
||||
// CreateRejectPacket honors cap, capping the borrowed segment to its own length
|
||||
// (cap==len) makes it physically impossible for an oversized ICMPv6 reject to
|
||||
// overwrite the neighbor segment's bytes.
|
||||
// Test_CreateRejectPacket_RespectsCap ensures it is impossible for
|
||||
// an oversized ICMPv6 reject to overwrite the neighbor segment's bytes.
|
||||
func Test_CreateRejectPacket_RespectsCap(t *testing.T) {
|
||||
src := net.ParseIP("fd00::1")
|
||||
dst := net.ParseIP("fd00::2")
|
||||
|
||||
Reference in new issue
Block a user