Add a mising rtattr
This commit is contained in:
@@ -229,6 +229,7 @@ module Linux
|
|||||||
IFLA_STATS64 = 23
|
IFLA_STATS64 = 23
|
||||||
IFLA_VF_PORTS = 24
|
IFLA_VF_PORTS = 24
|
||||||
IFLA_PORT_SELF = 25
|
IFLA_PORT_SELF = 25
|
||||||
|
IFLA_AF_SPEC = 26
|
||||||
|
|
||||||
IFLA_INFO_UNSPEC = 0
|
IFLA_INFO_UNSPEC = 0
|
||||||
IFLA_INFO_KIND = 1 # "vlan", "gre" etc
|
IFLA_INFO_KIND = 1 # "vlan", "gre" etc
|
||||||
|
@@ -60,6 +60,7 @@ module Netlink
|
|||||||
:unpack => lambda { |str,obj| LinkStats.new(*(str.unpack("Q23"))) }
|
:unpack => lambda { |str,obj| LinkStats.new(*(str.unpack("Q23"))) }
|
||||||
rtattr :vf_ports, IFLA_VF_PORTS
|
rtattr :vf_ports, IFLA_VF_PORTS
|
||||||
rtattr :port_self, IFLA_PORT_SELF
|
rtattr :port_self, IFLA_PORT_SELF
|
||||||
|
rtattr :af_spec, IFLA_AF_SPEC
|
||||||
|
|
||||||
# Return the best stats available (64bit or 32bit)
|
# Return the best stats available (64bit or 32bit)
|
||||||
def stats
|
def stats
|
||||||
|
Reference in New Issue
Block a user