MCPcopy
hub / github.com/google/gvisor / testIPv6Endpoint

Struct testIPv6Endpoint

pkg/tcpip/stack/nic_test.go:36–43  ·  view source on GitHub ↗

An IPv6 NetworkEndpoint that throws away outgoing packets. We use this instead of ipv6.endpoint because the ipv6 package depends on the stack package which this test lives in, causing a cyclic dependency.

Source from the content-addressed store, hash-verified

34// We use this instead of ipv6.endpoint because the ipv6 package depends on
35// the stack package which this test lives in, causing a cyclic dependency.
36type testIPv6Endpoint struct {
37 AddressableEndpointState
38
39 nic NetworkInterface
40 protocol *testIPv6Protocol
41
42 invalidatedRtr tcpip.Address
43}
44
45func (*testIPv6Endpoint) Enable() tcpip.Error {
46 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected