Skip to content

Commit 42d8fdf

Browse files
authored
netstack/icmp: fix build breaking commit by bad bot
1 parent ab2c510 commit 42d8fdf

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

intra/netstack/icmp.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -666,19 +666,6 @@ func l4l7(pkt *stack.PacketBuffer, sz uint32) ([]byte, error) {
666666
din.Merge(&l7) // l4 + l7
667667
return din.Flatten(), nil
668668
}
669-
// Fix for IPv6 reply function
670-
func (f *icmpForwarder) reply6(id stack.TransportEndpointID, pkt *stack.PacketBuffer) (handled bool) {
671-
// ... existing code until line 173 ...
672-
673-
// Fixed: Use correct protocol number and packet
674-
err = route.WritePacket(stack.NetworkHeaderParams{
675-
Protocol: header.ICMPv6ProtocolNumber, // ✅ Fixed protocol
676-
TTL: route.DefaultTTL(),
677-
TOS: replyclass,
678-
}, replyPkt) // ✅ Use reply packet, not original
679-
680-
// ... rest of function
681-
}
682669

683670
func l3l4(pkt *stack.PacketBuffer, sz int64) (b buffer.Buffer, err error) {
684671
l3 := pkt.NetworkHeader().View()

0 commit comments

Comments
 (0)