Reorganise under Linux::
This commit is contained in:
@@ -2,12 +2,12 @@ LIBDIR = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
||||
$LOAD_PATH.unshift LIBDIR
|
||||
|
||||
require 'pp'
|
||||
require 'netlink/route'
|
||||
require 'linux/netlink/route'
|
||||
|
||||
# Example of use of low-level API for NETLINK_ROUTE socket.
|
||||
# Each of these method calls performs a netlink protocol exchange.
|
||||
|
||||
ip = Netlink::Route::Socket.new
|
||||
ip = Linux::Netlink::Route::Socket.new
|
||||
puts "*** links ***"
|
||||
pp ip.link.read_link
|
||||
puts "*** addrs ***"
|
||||
|
Reference in New Issue
Block a user