Basic generation and parsing of rtattr values

This commit is contained in:
Brian Candler
2011-04-29 14:11:18 +01:00
parent 933f20823f
commit 8c690450a7
4 changed files with 225 additions and 51 deletions

View File

@@ -47,7 +47,10 @@ end
if __FILE__ == $0
require 'pp'
nl = Netlink::RTSocket.new
puts "*** routes ***"
pp nl.route_list(:family => Socket::AF_INET)
puts "*** links ***"
pp nl.link_list(:family => Socket::AF_INET)
puts "*** addrs ***"
pp nl.addr_list(:family => Socket::AF_INET)
end