(CFACT 86) Fix network address

Previously, the networking resolver did not resolve the network address
correctly. This patch gets the network address from the ipaddress and the
netmask correctly.
(MAINT) ensure that reinterpret cast is used instead of c-style cast.
(CFACT 86) Ensure that we do not modify req on ioctl

Previously, ioctl modifed the request structures when it was passed it
in. This patch ensures that ioctl operates on a copy rather than the original.
Merge pull request #146 from vrthra/fix/cfact-86/solaris-networking

(CFACT-86) Solaris: fix network address