From df9b8753c9867eecfa84408ca8042d30dfd70338 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 16 Aug 2008 23:02:03 +0000 Subject: [PATCH] fix to previous check-in --- src/enum_net.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/enum_net.cpp b/src/enum_net.cpp index e9c72fbb4..7f2a1fef7 100644 --- a/src/enum_net.cpp +++ b/src/enum_net.cpp @@ -150,10 +150,10 @@ namespace libtorrent { namespace if_indextoname(*(int*)RTA_DATA(rt_attr), rt_info->name); break; case RTA_GATEWAY: - rt_info->gateway = address_v4(ntoh(*(u_int*)RTA_DATA(rt_attr))); + rt_info->gateway = address_v4(ntohl(*(u_int*)RTA_DATA(rt_attr))); break; case RTA_DST: - rt_info->destination = address_v4(ntoh(*(u_int*)RTA_DATA(rt_attr))); + rt_info->destination = address_v4(ntohl(*(u_int*)RTA_DATA(rt_attr))); break; } }