Skip to content

Commit

Permalink
Add partition index to UDP configuration for new path binding
Browse files Browse the repository at this point in the history
  • Loading branch information
masa-koz committed Jan 13, 2025
1 parent 6d53d03 commit dda0b00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -6315,6 +6315,8 @@ QuicConnOpenNewPath(
UdpConfig.RemoteAddress = &Connection->Paths[0].Route.RemoteAddress;
UdpConfig.Flags = Connection->State.ShareBinding ? CXPLAT_SOCKET_FLAG_SHARE : 0;
UdpConfig.InterfaceIndex = 0;
// Open a new binding with the same partition as the connection.
UdpConfig.PartitionIndex = QuicPartitionIdGetIndex(Connection->PartitionID);
#ifdef QUIC_COMPARTMENT_ID
UdpConfig.CompartmentId = Connection->Configuration->CompartmentId;
#endif
Expand Down

0 comments on commit dda0b00

Please sign in to comment.