Added new constants for linux3.5

This commit is contained in:
Patrick J Cherry
2013-07-05 13:45:51 +01:00
parent 88369d914d
commit 55c38a4877
2 changed files with 5 additions and 1 deletions

View File

@@ -236,6 +236,8 @@ module Linux
IFLA_AF_SPEC = 26
IFLA_GROUP = 27
IFLA_NET_NS_FD = 28
IFLA_EXT_MASK = 29
IFLA_PROMISCUITY = 30
IFLA_INFO_UNSPEC = 0
IFLA_INFO_KIND = 1 # "vlan", "gre" etc

View File

@@ -63,7 +63,9 @@ module Netlink
rtattr :af_spec, IFLA_AF_SPEC
rtattr :group, IFLA_GROUP
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)
def stats
stats64 || stats32