netlink/nl
Dave Tucker 80a80badbd Implement basic `route get` functionality
This provides the basic functionality of the iproute2 `route get`
command. It allows you to query netlink for the route to a destination
IP.Net

While implementing I noticed that the `s.Receive()` function was hanging
after the netlink response was recieved, so I added an additional clause
to break from the loop and return the decoded message if the NLM_F_MULTI
flag is not set.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-01-11 18:15:59 +00:00
..
addr_linux.go gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
addr_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
link_linux.go arp and vxlan support added 2014-10-13 11:04:09 -07:00
nl_linux.go Implement basic `route get` functionality 2015-01-11 18:15:59 +00:00
nl_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
route_linux.go gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
route_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
xfrm_linux.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
xfrm_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
xfrm_policy_linux.go gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
xfrm_policy_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00
xfrm_state_linux.go gofmt: style violations have crept up 2014-10-28 17:22:52 -07:00
xfrm_state_linux_test.go Move all low level calls into nl subpackage 2014-09-18 19:04:48 -07:00