Commit Graph

11 Commits

Author SHA1 Message Date
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
Tobias Klauser
36d367fd76 Remove unused *_PROTO constants
These are unused since commit 941b4de9e1

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2019-09-13 09:58:27 -07:00
GopiKrishna Kodali
941b4de9e1 Read connection marking information from CT flow TLV 2019-08-23 11:20:03 -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
Ian Bishop
0e3b74dbe2 replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
Sibi Chakravarthy
8d7f7aad19 added missing mark in Sprintf 2017-07-18 16:23:47 -07:00
sibi
a56439f1e4 added-mark 2017-07-18 14:16:10 -07:00
Shaun Crampton
6e453822d8 Make conntrack filter into an interface to allow for custom filters. 2017-06-30 11:43:20 -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
24a3a2da61 Introduce Conntrack support
- Conntrack table FLUSH
- Conntrack table DELETE with filter
    The filter is only for IP field
- Conntrack table GET
  The flow information is not complete, but the method
  returns a simplified structure with basic flow info

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