Observation domain (#98)

* netflow: Add observation domain and point to message

The ObservationDomainID and ObservationPointID are two IPFIX fields that
identify the entity that is capturing flows and can be used to enrich
the context around a specific sample.

Parse these fields from the sample and add them to the FlowMessage.

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
Co-authored-by: Adrian Moreno <amorenoz@redhat.com>
This commit is contained in:
Louis
2022-07-20 21:27:51 -07:00
committed by GitHub
parent 838505b10b
commit 0020934574
7 changed files with 89 additions and 50 deletions

View File

@@ -22,7 +22,12 @@ func (s *stopper) start() error {
func (s *stopper) Shutdown() {
if s.stopCh != nil {
close(s.stopCh)
select {
case <-s.stopCh:
default:
close(s.stopCh)
}
s.stopCh = nil
}
}