diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-05-11 14:30:19 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-11 14:30:19 +0000 |
commit | c5ad4cb87451223423ff9911f0793ff9941514c7 (patch) | |
tree | d3ae9dcf2752f45281ae0f681d2557992490dc2a /pkg/tcpip/network/ipv4 | |
parent | 42943ed3c34018e6437ddf530662e1edd7399344 (diff) | |
parent | 1daabac237ffb2b7d5711d87bfadc531dc457d08 (diff) |
Merge release-20210503.0-32-g1daabac23 (automated)
Diffstat (limited to 'pkg/tcpip/network/ipv4')
-rw-r--r-- | pkg/tcpip/network/ipv4/ipv4.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/network/ipv4/ipv4.go b/pkg/tcpip/network/ipv4/ipv4.go index b11e56c6a..19657fde1 100644 --- a/pkg/tcpip/network/ipv4/ipv4.go +++ b/pkg/tcpip/network/ipv4/ipv4.go @@ -645,7 +645,7 @@ func (e *endpoint) forwardPacket(pkt *stack.PacketBuffer) ip.ForwardingError { forwarding: true, }, pkt) } - return &ip.ErrIPOptProblem{} + return &ip.ErrParameterProblem{} } copied := copy(opts, newOpts) if copied != len(newOpts) { @@ -827,7 +827,7 @@ func (e *endpoint) handleValidatedPacket(h header.IPv4, pkt *stack.PacketBuffer) stats.ip.Forwarding.ExhaustedTTL.Increment() case *ip.ErrNoRoute: stats.ip.Forwarding.Unrouteable.Increment() - case *ip.ErrIPOptProblem: + case *ip.ErrParameterProblem: e.protocol.stack.Stats().MalformedRcvdPackets.Increment() stats.ip.MalformedPacketsReceived.Increment() default: |