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

Method sendDeleteEvent

pkg/sentry/socket/netstack/stack.go:95–100  ·  view source on GitHub ↗
(ctx context.Context, id tcpip.NICID, nicInfo *stack.NICInfo)

Source from the content-addressed store, hash-verified

93}
94
95func (s *Stack) sendDeleteEvent(ctx context.Context, id tcpip.NICID, nicInfo *stack.NICInfo) {
96 if s.eventSubscriber == nil {
97 return
98 }
99 s.eventSubscriber.OnInterfaceDeleteEvent(ctx, int32(id), makeInterfaceInfo(nicInfo))
100}
101
102// Destroy implements inet.Stack.Destroy.
103func (s *Stack) Destroy() {

Callers 2

RemoveInterfaceMethod · 0.95
setLinkLockedMethod · 0.80

Calls 2

makeInterfaceInfoFunction · 0.85

Tested by

no test coverage detected