Add the IFA_FLAGS RTAttr and a couple of new flags

This commit is contained in:
nick
2014-04-15 14:12:06 +01:00
parent 810c743583
commit 28cda0ee62
2 changed files with 24 additions and 17 deletions

View File

@@ -24,6 +24,10 @@ module Netlink
:pack => lambda { |val,obj| val.to_a.pack("L*") },
:unpack => lambda { |str,obj| IFACacheInfo.new(*(str.unpack("L*"))) }
rtattr :multicast, IFA_MULTICAST, :l3addr
# TODO: is there any difference between flags and ifa_flags? The latter only
# shows up on newer kernels
rtattr :ifa_flags, IFA_FLAGS, :uint
end
module Route