netlink/nl
Taku Fukushima 85aa3b74a4 Add statistics to class attributes
This patch adds ClassStatistics, a struct that represents the stats
of a class based on genric networking stats for netlink, to ClassAttrs.
The parsers for rtattrs in type of TCA_STATS and TCA_STATS2 are
introduced as well and the stats are appropriately parsed as a part
of ClassAttrs struct.

The practical tests for stats are not contained in this patch yet since
it requires the actual packet sending/receiving in the random timing,
which makes the tests complicated and flaky. Once we figure it out how
to test them in the proper way, they shall be added.

Signed-off-by: Taku Fukushima <taku@soracom.jp>
2018-03-27 21:08:57 -07:00
..
addr_linux_test.go replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
addr_linux.go replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
bridge_linux_test.go Add bridge vlan support 2017-06-13 11:04:51 -07:00
bridge_linux.go Add bridge vlan support 2017-06-13 11:04:51 -07:00
conntrack_linux.go Read conntrack flow statistics 2018-03-16 14:29:24 -07:00
genetlink_linux.go Add support for GPRS Tunnelling Protocol(GTP) 2017-05-06 23:07:19 -07:00
link_linux_test.go add SetVfHardwareAddr and SetVfVlan to link 2016-02-15 14:31:32 -08:00
link_linux.go Add support for setting InfininBand Node and Port GUID of a VF 2018-03-26 21:49:05 -07:00
mpls_linux.go support MPLS 2017-02-20 12:07:19 -08:00
nl_linux_test.go replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
nl_linux.go Support setting and retrieving route MTU/AdvMSS 2017-11-09 14:04:31 -08:00
nl_unspecified.go Fix compilation errors for non linux platforms. 2017-02-20 12:00:54 -08:00
route_linux_test.go replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
route_linux.go replace syscall with golang.org/x/sys/unix 2017-10-26 09:45:08 -07:00
seg6_linux.go Support LWTUNNEL_ENCAP_SEG6 2017-11-08 03:33:01 -08:00
syscall.go Support LWTUNNEL_ENCAP_SEG6 2017-11-08 03:33:01 -08:00
tc_linux_test.go Add TestTcHtbCoptDeserializeSerialize 2015-09-11 17:32:54 -07:00
tc_linux.go Add statistics to class attributes 2018-03-27 21:08:57 -07:00
xfrm_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
xfrm_linux.go Add XfrmMonitor 2017-02-02 12:58:44 -08:00
xfrm_monitor_linux_test.go Add XfrmMonitor 2017-02-02 12:58:44 -08:00
xfrm_monitor_linux.go Add XfrmMonitor 2017-02-02 12:58:44 -08:00
xfrm_policy_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
xfrm_policy_linux.go gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
xfrm_state_linux_test.go Add XfrmAllocSpi 2017-02-02 13:02:12 -08:00
xfrm_state_linux.go Add support of ESN 2017-02-03 08:10:37 -08:00