summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack
diff options
context:
space:
mode:
authorGoogler <noreply@google.com>2019-02-07 13:44:57 -0800
committerShentubot <shentubot@google.com>2019-02-07 13:46:26 -0800
commite0afa8789963c18c1afed7d222754ef4b7415a7d (patch)
tree7022cf540cf9d557aa53780235cdb22497e28340 /pkg/tcpip/stack
parent9ef3427ac14a84002497f3c8bac346486cb36f2b (diff)
Internal change.
PiperOrigin-RevId: 232937200 Change-Id: I5c3709cc8f1313313ff618a45e48c14a3a111cb4
Diffstat (limited to 'pkg/tcpip/stack')
-rw-r--r--pkg/tcpip/stack/registration.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/registration.go b/pkg/tcpip/stack/registration.go
index 6becd9426..010d51886 100644
--- a/pkg/tcpip/stack/registration.go
+++ b/pkg/tcpip/stack/registration.go
@@ -253,6 +253,15 @@ type LinkEndpoint interface {
IsAttached() bool
}
+// InjectableLinkEndpoint is a LinkEndpoint where inbound packets are
+// delivered via the Inject method.
+type InjectableLinkEndpoint interface {
+ LinkEndpoint
+
+ // Inject injects an inbound packet.
+ Inject(protocol tcpip.NetworkProtocolNumber, vv buffer.VectorisedView)
+}
+
// A LinkAddressResolver is an extension to a NetworkProtocol that
// can resolve link addresses.
type LinkAddressResolver interface {