|
|
@ -165,8 +165,8 @@ func NetProtoCounters(protocols []string) ([]NetProtoCountersStat, error) {
|
|
|
|
// the currently in use conntrack count and the max.
|
|
|
|
// the currently in use conntrack count and the max.
|
|
|
|
// If the file does not exist or is invalid it will return nil.
|
|
|
|
// If the file does not exist or is invalid it will return nil.
|
|
|
|
func NetFilterCounters() ([]NetFilterStat, error) {
|
|
|
|
func NetFilterCounters() ([]NetFilterStat, error) {
|
|
|
|
countfile := common.HostProc("sys/net/netfilter/nf_conntrack_count")
|
|
|
|
countfile := common.HostProc("sys/net/netfilter/nf_conntrack_count")
|
|
|
|
maxfile := common.HostProc("sys/net/netfilter/nf_conntrack_max")
|
|
|
|
maxfile := common.HostProc("sys/net/netfilter/nf_conntrack_max")
|
|
|
|
|
|
|
|
|
|
|
|
count, err := common.ReadInts(countfile)
|
|
|
|
count, err := common.ReadInts(countfile)
|
|
|
|
|
|
|
|
|
|
|
|