MCPcopy Create free account
hub / github.com/google/gvisor / NewStack

Function NewStack

pkg/sentry/socket/netstack/stack.go:60–65  ·  view source on GitHub ↗

NewStack creates a new netstack.Stack which wraps the given tcpip.Stack.

(s *stack.Stack, id uint64)

Source from the content-addressed store, hash-verified

58
59// NewStack creates a new netstack.Stack which wraps the given tcpip.Stack.
60func NewStack(s *stack.Stack, id uint64) *Stack {
61 return &Stack{
62 Stack: s,
63 id: id,
64 }
65}
66
67// AddInterfaceEventSubscriber implements inet.InterfaceEventPublisher.AddInterfaceEventSubscriber.
68func (s *Stack) AddInterfaceEventSubscriber(sub inet.InterfaceEventSubscriber) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…