summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/registration.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-06-17 20:40:20 +0000
committergVisor bot <gvisor-bot@google.com>2021-06-17 20:40:20 +0000
commitde4e4be19d25554a51d96789f119d06c8e66d096 (patch)
tree5bb0fcdc3b68aa7d4f9a30f73e27e30e253343c0 /pkg/tcpip/stack/registration.go
parent47685d21873a15b9fc994999f6fa316969a5ab60 (diff)
parent0f5c1f5eafb2cc67a9148bdf346b6083e5a8480c (diff)
Merge release-20210607.0-53-g0f5c1f5ea (automated)
Diffstat (limited to 'pkg/tcpip/stack/registration.go')
-rw-r--r--pkg/tcpip/stack/registration.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/registration.go b/pkg/tcpip/stack/registration.go
index a038389e0..dfe2c886f 100644
--- a/pkg/tcpip/stack/registration.go
+++ b/pkg/tcpip/stack/registration.go
@@ -265,6 +265,11 @@ type TransportDispatcher interface {
//
// DeliverTransportError takes ownership of the packet buffer.
DeliverTransportError(local, remote tcpip.Address, _ tcpip.NetworkProtocolNumber, _ tcpip.TransportProtocolNumber, _ TransportError, _ *PacketBuffer)
+
+ // DeliverRawPacket delivers a packet to any subscribed raw sockets.
+ //
+ // DeliverRawPacket does NOT take ownership of the packet buffer.
+ DeliverRawPacket(tcpip.TransportProtocolNumber, *PacketBuffer)
}
// PacketLooping specifies where an outbound packet should be sent.