diff --git a/lib/linux/constants.rb b/lib/linux/constants.rb index 0e777c5..bc8fa21 100644 --- a/lib/linux/constants.rb +++ b/lib/linux/constants.rb @@ -43,7 +43,7 @@ module Linux NLM_F_CREATE = 0x400 NLM_F_APPEND = 0x800 - NLMSG_ALIGNTO = 4 + NLMSG_ALIGNTO = 4 # same on i686 and x86_64 NLMSG_NOOP = 0x1 NLMSG_ERROR = 0x2 @@ -63,7 +63,7 @@ module Linux NLA_F_NET_BYTEORDER = (1 << 14) NLA_TYPE_MASK = ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER) - NLA_ALIGNTO = 4 + NLA_ALIGNTO = 4 # same on i686 and x86_64 # from linux/rtnetlink.h. RTM_NEWLINK = 16 diff --git a/test/t_route.rb b/test/t_route.rb index 4196762..2786215 100644 --- a/test/t_route.rb +++ b/test/t_route.rb @@ -72,6 +72,10 @@ class TestAddr < Test::Unit::TestCase @ip.vlan.list(:link=>"lo").map { |x| x.linkinfo.data.id } end + # FIXME: On 10.04.2 LTS (32 and 64 bit) this gives Errno::EOPNOTSUPP; but + # ip link add link lo type vlan id 1234 + # ip link delete vlan0 + # both work fine. test "Add and remove vlan" do begin @ip.vlan.delete(:link=>"lo", :vlan_id=>1234)