fix to previous check-in

This commit is contained in:
Arvid Norberg 2008-08-16 23:02:03 +00:00
parent 55c79dd452
commit df9b8753c9
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}