func (nsp *NetworkSecurityProbe) StopDeviceMonitor(event *model.DeviceEvent) error {
	// Stop the device monitor. Changes are the kernel already deleted the qdisc so allow
	// a silent error on deletion.
	monitor, ok := nsp.TCMonitors[event.Device.Ifindex]
	if !ok {
		return nil
	}
	_ = monitor.Stop()
	// Remove monitor from the list of TC monitors
	delete(nsp.TCMonitors, event.Device.Ifindex)
	return nil
}
// StopDeviceMonitor - Stops a device monitor
Stops a device monitor
// StopDeviceMonitor - Stops a device monitor
func (nsp *NetworkSecurityProbe) StopDeviceMonitor(event *model.DeviceEvent) error {
	monitor, ok := nsp.TCMonitors[event.Device.Ifindex]
	if !ok {
		return nil
	}
	_ = monitor.Stop()
	delete(nsp.TCMonitors, event.Device.Ifindex)
	return nil
}
func ( nsp * NetworkSecurityProbe ) StopDeviceMonitor ( event * model . DeviceEvent ) error { monitor , ok := nsp . TCMonitors [ event . Device . Ifindex ] if ! ok { return nil } _ = monitor . Stop ( ) delete ( nsp . TCMonitors , event . Device . Ifindex ) return nil }
Stops a device monitor
Stops a device monitor
// Stop the device monitor. Changes are the kernel already deleted the qdisc so allow // a silent error on deletion. // Remove monitor from the list of TC monitors