* autoload.cc (GetIpForwardTable): Define.
* fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFDSTADDR. * net.cc (get_routedst): New static function to get destination address of point-to-point interfaces. (get_xp_ifconf): Handle SIOCGIFDSTADDR. (get_2k_ifconf): Ditto. (get_nt_ifconf): Ditto. (get_ifconf): Ditto. * include/asm/socket.h (SIOCGIFDSTADDR): Define. * include/cygwin/if.h (struct ifreq): Add ifru_dstaddr member. (ifr_dstaddr): Define. * include/cygwin/in.h: Cast ipv4 addresses correctly to in_addr_t in definitions.
This commit is contained in:
@ -1519,6 +1519,7 @@ fhandler_socket::ioctl (unsigned int cmd, void *p)
|
||||
case SIOCGIFMTU:
|
||||
case SIOCGIFINDEX:
|
||||
case SIOCGIFFRNDLYNAM:
|
||||
case SIOCGIFDSTADDR:
|
||||
{
|
||||
if (!p)
|
||||
{
|
||||
|
Reference in New Issue
Block a user