mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix up TODOs in the code
PiperOrigin-RevId: 371231148
This commit is contained in:
committed by
gVisor bot
parent
9ff0d382d6
commit
c958c5a4f1
@@ -101,7 +101,7 @@ func (f *fwdTestNetworkEndpoint) HandlePacket(pkt *PacketBuffer) {
|
||||
ReserveHeaderBytes: int(r.MaxHeaderLength()),
|
||||
Data: vv.ToView().ToVectorisedView(),
|
||||
})
|
||||
// TODO(b/143425874) Decrease the TTL field in forwarded packets.
|
||||
// TODO(gvisor.dev/issue/1085) Decrease the TTL field in forwarded packets.
|
||||
_ = r.WriteHeaderIncludedPacket(pkt)
|
||||
}
|
||||
|
||||
|
||||
@@ -747,8 +747,8 @@ func (e *endpoint) HandlePacket(id stack.TransportEndpointID, pkt *stack.PacketB
|
||||
switch e.NetProto {
|
||||
case header.IPv4ProtocolNumber:
|
||||
h := header.ICMPv4(pkt.TransportHeader().View())
|
||||
// TODO(b/129292233): Determine if len(h) check is still needed after early
|
||||
// parsing.
|
||||
// TODO(gvisor.dev/issue/170): Determine if len(h) check is still needed
|
||||
// after early parsing.
|
||||
if len(h) < header.ICMPv4MinimumSize || h.Type() != header.ICMPv4EchoReply {
|
||||
e.stack.Stats().DroppedPackets.Increment()
|
||||
e.stats.ReceiveErrors.MalformedPacketsReceived.Increment()
|
||||
@@ -756,8 +756,8 @@ func (e *endpoint) HandlePacket(id stack.TransportEndpointID, pkt *stack.PacketB
|
||||
}
|
||||
case header.IPv6ProtocolNumber:
|
||||
h := header.ICMPv6(pkt.TransportHeader().View())
|
||||
// TODO(b/129292233): Determine if len(h) check is still needed after early
|
||||
// parsing.
|
||||
// TODO(gvisor.dev/issue/170): Determine if len(h) check is still needed
|
||||
// after early parsing.
|
||||
if len(h) < header.ICMPv6MinimumSize || h.Type() != header.ICMPv6EchoReply {
|
||||
e.stack.Stats().DroppedPackets.Increment()
|
||||
e.stats.ReceiveErrors.MalformedPacketsReceived.Increment()
|
||||
|
||||
@@ -632,7 +632,7 @@ TEST_F(XattrTest, TrustedNamespaceWithCapSysAdmin) {
|
||||
// Trusted namespace not supported in VFS1.
|
||||
SKIP_IF(IsRunningWithVFS1());
|
||||
|
||||
// TODO(b/66162845): Only gVisor tmpfs currently supports trusted namespace.
|
||||
// TODO(b/166162845): Only gVisor tmpfs currently supports trusted namespace.
|
||||
SKIP_IF(IsRunningOnGvisor() &&
|
||||
!ASSERT_NO_ERRNO_AND_VALUE(IsTmpfs(test_file_name_)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user