func (m *Monitor) Stop() error {
	// Stop probes
	for _, p := range m.Probes {
		if err := p.Stop(); err != nil {
			baseLogger.Errorf("couldn't stop probe \"%s\": %v", p.Name, err)
		}
	}
	// Remove qdisc
	if m.Ifindex == 0 {
		return nil
	}
	var errTmp, err error
	// Delete qdisc (it will also delete any filter associated to this qdisc)
	if errTmp = m.rtNetlink.Qdisc().Delete(m.qdisc); err != nil {
		err = fmt.Errorf("coudln't delete \"clsact\" qdisc from interface %v: %v", m.Ifindex, errTmp)
	}
	// Close RTNetlink connection
	if errTmp = m.rtNetlink.Close(); err != nil {
		if err == nil {
			err = fmt.Errorf("couldn't close RTNetlink connection: %v", errTmp)
		} else {
			errTmp = fmt.Errorf("couldn't close RTNetlink connection: %v", errTmp)
			err = fmt.Errorf("%v, %v", err, errTmp)
		}
	}
	return err
}
// Stop - Stops the monitor
Stops the monitor
// Stop - Stops the monitor
func (m *Monitor) Stop() error {
	for _, p := range m.Probes {
		if err := p.Stop(); err != nil {
			baseLogger.Errorf("couldn't stop probe \"%s\": %v", p.Name, err)
		}
	}
	if m.Ifindex == 0 {
		return nil
	}
	var errTmp, err error
	if errTmp = m.rtNetlink.Qdisc().Delete(m.qdisc); err != nil {
		err = fmt.Errorf("coudln't delete \"clsact\" qdisc from interface %v: %v", m.Ifindex, errTmp)
	}
	if errTmp = m.rtNetlink.Close(); err != nil {
		if err == nil {
			err = fmt.Errorf("couldn't close RTNetlink connection: %v", errTmp)
		} else {
			errTmp = fmt.Errorf("couldn't close RTNetlink connection: %v", errTmp)
			err = fmt.Errorf("%v, %v", err, errTmp)
		}
	}
	return err
}
func ( m * Monitor ) Stop ( ) error { for _ , p := range m . Probes { if err := p . Stop ( ) ; err != nil { baseLogger . Errorf ( " \" \" " , p . Name , err ) } } if m . Ifindex == 0 { return nil } var errTmp , err error if errTmp = m . rtNetlink . Qdisc ( ) . Delete ( m . qdisc ) ; err != nil { err = fmt . Errorf ( " \" \" " , m . Ifindex , errTmp ) } if errTmp = m . rtNetlink . Close ( ) ; err != nil { if err == nil { err = fmt . Errorf ( " " , errTmp ) } else { errTmp = fmt . Errorf ( " " , errTmp ) err = fmt . Errorf ( " " , err , errTmp ) } } return err }
Stops the monitor
Stops the monitor
// Stop probes // Remove qdisc // Delete qdisc (it will also delete any filter associated to this qdisc) // Close RTNetlink connection