Commit Graph

11 Commits

Author SHA1 Message Date
Vishvananda Abrams 523ee65ce3 fix the tests to run again 2022-01-12 16:05:20 -06:00
Milan Lenco 871f8a156e Add test for conntrack entry raw data parsing
Signed-off-by: Milan Lenco <milan@zededa.com>
2021-09-17 19:01:08 -07:00
Antonio Ojea a3836f0b5d conntrack: allow to filter by subnet
Add a new conntrack filter to be able to filter by subnet, in
addition to current IP address filter.

Signed-off-by: Antonio Ojea <aojea@redhat.com>
2021-05-08 17:46:37 -07:00
Antonio Ojea bca67dfc82 conntrack filter by port and protocol
Add a new method to the ConntrackFilter to be able to
filter conntrack entries by Layer 4 protocol and source
and destination port.

Signed-off-by: Antonio Ojea <aojea@redhat.com>
2020-06-25 10:50:47 -07:00
Flavio Crisciani 02a383156a Adjust conntrack filters
Today the filter implementation implements
only ip matching for src,dst,reply src,reply dst.
Updating the comments on the filter to reflect that
more clearly and deprecate confusing constants

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-10-24 12:03:49 -07:00
Yang Guan 41009d533b Read conntrack flow statistics
This PR allows populating per-connection packet and byte counts to
ConntrackFlow object when nf_conntrack_acct is enabled.
2018-03-16 14:29:24 -07:00
Alessandro Boch 8bead6f932 Add requirements to conntrack tests
Signed-off-by: Alessandro Boch <aboch@tetrationanalytics.com>
2017-11-27 15:51:29 -08:00
Alessandro Boch ae21927b7c Exclude linux specific test code from running on other platforms
Signed-off-by: Alessandro Boch <aboch@tetrationanalytics.com>
2017-11-08 03:30:50 -08:00
Ian Bishop 0e3b74dbe2 replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
Flavio Crisciani 1e86b2bee5 AddIP prototype change and fix for go 1.6
Removed extra pointer not needed in AddIP
Updated tests

Removed the use of io.SeekCurrent and defined it as a const

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-04-07 11:04:30 -07:00
Flavio Crisciani c771f0b9d2 Conntrack testing
Added tests for:
Table FLUSH
Table GET
Table DELETE with filter
Filter match

Use a simple UDP client to create flows into the conntrack for testing purpose
Each test will run in a separate network namespace so can run in parallel
Added kernel module dependencies into the travis file

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-04-05 16:02:07 -07:00