Merge branch 'RC_1_1'

This commit is contained in:
arvidn 2016-06-22 00:41:02 -04:00
commit 3b2a527ffb
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,7 @@
1.1.1 release
* fix bug in enum_net() for BSD and Mac
* fix bug in python binding of announce_entry
* fixed bug related to flag_merge_resume_http_seeds flag in add_torrent_params
* fixed inverted priority of incoming piece suggestions

View File

@ -278,6 +278,7 @@ int _System __libsocket_sysctl(int* mib, u_int namelen, void *oldp, size_t *oldl
, rt_info->destination.is_v4() ? AF_INET : AF_INET6);
if_indextoname(rtm->rtm_index, rt_info->name);
// TODO: get the MTU (and other interesting metrics) from the rt_msghdr instead
ifreq req;
memset(&req, 0, sizeof(req));
if_indextoname(rtm->rtm_index, req.ifr_name);
@ -887,8 +888,11 @@ namespace libtorrent
for (char* next = buf.get(); next < end; next += rtm->rtm_msglen)
{
rtm = reinterpret_cast<rt_msghdr*>(next);
if (rtm->rtm_version != RTM_VERSION)
if (rtm->rtm_version != RTM_VERSION
|| rtm->rtm_type != RTM_ADD)
{
continue;
}
ip_route r;
if (parse_route(s, rtm, &r)) ret.push_back(r);