NewStack creates a new netstack.Stack which wraps the given tcpip.Stack.
(s *stack.Stack, id uint64)
| 58 | |
| 59 | // NewStack creates a new netstack.Stack which wraps the given tcpip.Stack. |
| 60 | func 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. |
| 68 | func (s *Stack) AddInterfaceEventSubscriber(sub inet.InterfaceEventSubscriber) { |
no outgoing calls
no test coverage detected
searching dependent graphs…