Get network device and gateway information

It is especially useful when you want to do low-level network programming.
