(ctx context.Context, id tcpip.NICID)
| 84 | } |
| 85 | |
| 86 | func (s *Stack) sendChangeEvent(ctx context.Context, id tcpip.NICID) { |
| 87 | if s.eventSubscriber == nil { |
| 88 | return |
| 89 | } |
| 90 | if nicInfo, ok := s.Stack.SingleNICInfo(id); ok { |
| 91 | s.eventSubscriber.OnInterfaceChangeEvent(ctx, int32(id), makeInterfaceInfo(nicInfo)) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | func (s *Stack) sendDeleteEvent(ctx context.Context, id tcpip.NICID, nicInfo *stack.NICInfo) { |
| 96 | if s.eventSubscriber == nil { |
no test coverage detected