mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove unnecessary IsForwardedPacket condition
PiperOrigin-RevId: 443694489
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user