Add a mising rtattr

This commit is contained in:
nick
2011-07-11 10:36:30 +01:00
parent d31c521fdb
commit 8f8b0b040c
2 changed files with 2 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ module Linux
IFLA_STATS64 = 23
IFLA_VF_PORTS = 24
IFLA_PORT_SELF = 25
IFLA_AF_SPEC = 26
IFLA_INFO_UNSPEC = 0
IFLA_INFO_KIND = 1 # "vlan", "gre" etc

View File

@@ -60,6 +60,7 @@ module Netlink
:unpack => lambda { |str,obj| LinkStats.new(*(str.unpack("Q23"))) }
rtattr :vf_ports, IFLA_VF_PORTS
rtattr :port_self, IFLA_PORT_SELF
rtattr :af_spec, IFLA_AF_SPEC
# Return the best stats available (64bit or 32bit)
def stats