summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/muxed
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-08-27 11:12:08 -0700
committergVisor bot <gvisor-bot@google.com>2021-08-27 11:15:23 -0700
commitfbf020d6a0258275a68573032bea225a1f5396ab (patch)
tree3f292e3a2a63b031b59d73378ba300a71a3997d5 /pkg/tcpip/link/muxed
parent1076702371fa02a36b70a6abf10dbec886742208 (diff)
Add LinkEndpoint.WriteRawPacket with stubs
...returning unsupported errors. PiperOrigin-RevId: 393388991
Diffstat (limited to 'pkg/tcpip/link/muxed')
-rw-r--r--pkg/tcpip/link/muxed/injectable.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/link/muxed/injectable.go b/pkg/tcpip/link/muxed/injectable.go
index 3e2a1aa94..844f5959b 100644
--- a/pkg/tcpip/link/muxed/injectable.go
+++ b/pkg/tcpip/link/muxed/injectable.go
@@ -131,6 +131,11 @@ func (*InjectableEndpoint) ARPHardwareType() header.ARPHardwareType {
func (*InjectableEndpoint) AddHeader(local, remote tcpip.LinkAddress, protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) {
}
+// WriteRawPacket implements stack.LinkEndpoint.
+func (*InjectableEndpoint) WriteRawPacket(*stack.PacketBuffer) tcpip.Error {
+ return &tcpip.ErrNotSupported{}
+}
+
// NewInjectableEndpoint creates a new multi-endpoint injectable endpoint.
func NewInjectableEndpoint(routes map[tcpip.Address]stack.InjectableLinkEndpoint) *InjectableEndpoint {
return &InjectableEndpoint{