Remove unnecessary IsForwardedPacket condition

PiperOrigin-RevId: 443694489
This commit is contained in:
Arthur Sfez
2022-04-22 10:09:02 -07:00
committed by gVisor bot
parent 2a238b23e7
commit 6d77aa52b8
+1 -3
View File
@@ -176,9 +176,7 @@ func NewPacketBuffer(opts PacketBufferOptions) *PacketBuffer {
for _, v := range opts.Data.Views() {
pk.buf.AppendOwned(v)
}
if opts.IsForwardedPacket {
pk.NetworkPacketInfo.IsForwardedPacket = opts.IsForwardedPacket
}
pk.NetworkPacketInfo.IsForwardedPacket = opts.IsForwardedPacket
pk.InitRefs()
return pk
}