We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b21ec9 commit 8eff8d0Copy full SHA for 8eff8d0
intra/netstack/forwarders.go
@@ -177,11 +177,10 @@ func (p *processor) deliverPackets() {
177
pkt := p.pkts.PopFront()
178
p.mu.Unlock()
179
if pkt != nil {
180
- if p.icmp.respond(pkt) {
181
- return
+ if !p.icmp.respond(pkt) {
+ p.e.InjectInbound(pkt.NetworkProtocolNumber, pkt)
182
+ pkt.DecRef()
183
}
- p.e.InjectInbound(pkt.NetworkProtocolNumber, pkt)
184
- pkt.DecRef()
185
186
p.mu.Lock()
187
0 commit comments