Skip to content

Commit 7097a63

Browse files
icmp: make bot happy
1 parent 3788d23 commit 7097a63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

intra/netstack/icmp.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ func (f *icmpForwarder) reply6(id stack.TransportEndpointID, pkt *stack.PacketBu
243243
replyHdr.SetType(header.ICMPv6EchoReply)
244244
replyHdr.SetCode(0)
245245
replyHdr.SetChecksum(header.ICMPv6Checksum(header.ICMPv6ChecksumParams{
246-
replyRef,
247-
route.LocalAddress(), // or id.LocalAddress
248-
route.RemoteAddress(), // or id.RemoteAddress
249-
0,
250-
0,
246+
Header: replyRef,
247+
Src: route.LocalAddress(), // or id.LocalAddress
248+
Dst: route.RemoteAddress(), // or id.RemoteAddress
249+
PayloadCsum: 0,
250+
PayloadLen: 0,
251251
}))
252252
log.D("icmp: v6: %s: ok type %v/%v sz[%d] from %v <= %v",
253253
f.o, replyHdr.Type(), replyHdr.Code(), len(replyHdr), src, dst)

0 commit comments

Comments
 (0)