Added new constants for linux3.5
This commit is contained in:
@@ -236,6 +236,8 @@ module Linux
|
|||||||
IFLA_AF_SPEC = 26
|
IFLA_AF_SPEC = 26
|
||||||
IFLA_GROUP = 27
|
IFLA_GROUP = 27
|
||||||
IFLA_NET_NS_FD = 28
|
IFLA_NET_NS_FD = 28
|
||||||
|
IFLA_EXT_MASK = 29
|
||||||
|
IFLA_PROMISCUITY = 30
|
||||||
|
|
||||||
IFLA_INFO_UNSPEC = 0
|
IFLA_INFO_UNSPEC = 0
|
||||||
IFLA_INFO_KIND = 1 # "vlan", "gre" etc
|
IFLA_INFO_KIND = 1 # "vlan", "gre" etc
|
||||||
|
@@ -63,7 +63,9 @@ module Netlink
|
|||||||
rtattr :af_spec, IFLA_AF_SPEC
|
rtattr :af_spec, IFLA_AF_SPEC
|
||||||
rtattr :group, IFLA_GROUP
|
rtattr :group, IFLA_GROUP
|
||||||
rtattr :net_ns_fd, IFLA_NET_NS_FD
|
rtattr :net_ns_fd, IFLA_NET_NS_FD
|
||||||
|
rtattr :ext_mask, IFLA_EXT_MASK
|
||||||
|
rtattr :promiscuity, IFLA_PROMISCUITY
|
||||||
|
|
||||||
# Return the best stats available (64bit or 32bit)
|
# Return the best stats available (64bit or 32bit)
|
||||||
def stats
|
def stats
|
||||||
stats64 || stats32
|
stats64 || stats32
|
||||||
|
Reference in New Issue
Block a user