Skip to content

Commit

Permalink
Few other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks committed Nov 6, 2024
1 parent c9d4186 commit eb75449
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/core/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2894,6 +2894,9 @@ QuicConnProcessPeerTransportParameters(

if (Connection->PeerTransportParams.Flags & QUIC_TP_FLAG_OBSERVED_ADDRESS) {
Connection->State.ObservedAddressNegotiated = TRUE;
QuicSendSetSendFlag(
&Connection->Send,
QUIC_CONN_SEND_FLAG_OBSERVED_ADDRESS);
}

if (!FromResumptionTicket) {
Expand Down Expand Up @@ -7366,6 +7369,9 @@ QuicConnApplyNewSettings(

if (QuicConnIsServer(Connection) && Connection->PeerTransportParams.Flags & QUIC_TP_FLAG_OBSERVED_ADDRESS) {
Connection->State.ObservedAddressNegotiated = TRUE;
QuicSendSetSendFlag(
&Connection->Send,
QUIC_CONN_SEND_FLAG_OBSERVED_ADDRESS);
}

if (Connection->Settings.EcnEnabled) {
Expand Down
4 changes: 2 additions & 2 deletions src/core/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ QuicTimestampFrameEncode(

_Success_(return != FALSE)
BOOLEAN
(
QuicTimestampFrameDecode(
_In_ uint16_t BufferLength,
_In_reads_bytes_(BufferLength)
const uint8_t * const Buffer,
Expand Down Expand Up @@ -2107,7 +2107,7 @@ QuicFrameLog(

case QUIC_FRAME_TIMESTAMP: {
QUIC_TIMESTAMP_EX Frame;
if (!(PacketLength, Packet, Offset, &Frame)) {
if (!QuicTimestampFrameDecode(PacketLength, Packet, Offset, &Frame)) {
QuicTraceLogVerbose(
FrameLogTimestampInvalid,
"[%c][%cX][%llu] TIMESTAMP [Invalid]",
Expand Down
5 changes: 5 additions & 0 deletions src/core/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ QuicPathSetActive(
//
if (Path->SendObservedAddress) {
Connection->ObservedAddressSequenceNumber++;
if (Connection->State.ObservedAddressNegotiated) {
QuicSendSetSendFlag(
&Connection->Send,
QUIC_CONN_SEND_FLAG_OBSERVED_ADDRESS);
}
}

QuicTraceLogConnInfo(
Expand Down

0 comments on commit eb75449

Please sign in to comment.