mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Bump bundled libutp to rollback anonymous unions fix (#4877)
This commit is contained in:
@@ -729,7 +729,7 @@ void tr_peerIo::utp_init([[maybe_unused]] struct_utp_context* ctx)
|
||||
{
|
||||
if (auto* const io = static_cast<tr_peerIo*>(utp_get_userdata(args->socket)); io != nullptr)
|
||||
{
|
||||
io->on_utp_error(args->u1.error_code);
|
||||
io->on_utp_error(args->error_code);
|
||||
}
|
||||
return {};
|
||||
});
|
||||
@@ -742,7 +742,7 @@ void tr_peerIo::utp_init([[maybe_unused]] struct_utp_context* ctx)
|
||||
if (auto* const io = static_cast<tr_peerIo*>(utp_get_userdata(args->socket)); io != nullptr)
|
||||
{
|
||||
tr_logAddTraceIo(io, fmt::format("{:d} overhead bytes via utp", args->len));
|
||||
io->bandwidth().notifyBandwidthConsumed(args->u1.send != 0 ? TR_UP : TR_DOWN, args->len, false, tr_time_msec());
|
||||
io->bandwidth().notifyBandwidthConsumed(args->send != 0 ? TR_UP : TR_DOWN, args->len, false, tr_time_msec());
|
||||
}
|
||||
return {};
|
||||
});
|
||||
@@ -754,7 +754,7 @@ void tr_peerIo::utp_init([[maybe_unused]] struct_utp_context* ctx)
|
||||
{
|
||||
if (auto* const io = static_cast<tr_peerIo*>(utp_get_userdata(args->socket)); io != nullptr)
|
||||
{
|
||||
io->on_utp_state_change(args->u1.state);
|
||||
io->on_utp_state_change(args->state);
|
||||
}
|
||||
return {};
|
||||
});
|
||||
|
||||
@@ -134,7 +134,7 @@ uint64 utp_callback(utp_callback_arguments* args)
|
||||
break;
|
||||
|
||||
case UTP_SENDTO:
|
||||
utp_send_to(session, args->buf, args->len, args->u1.address, args->u2.address_len);
|
||||
utp_send_to(session, args->buf, args->len, args->address, args->address_len);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
2
third-party/libutp
vendored
2
third-party/libutp
vendored
Submodule third-party/libutp updated: 420e697ac4...c95738b1a6
Reference in New Issue
Block a user