Add DNAT support for QUIC Server Preferred Address.
When a server is behind a DNAT, the address it receives packets on
will be different from the address that the client sends to. So for
QUIC Server Preferred Address the server needs to advertise a different
address than the address it will expect to receive packets on.
This change adds an an optional "expected" server preferred address to
QuicConfig and changes QuicSession to pass the expected address to
QuicConnection. Renames the QuicConnection member and method from "sent"
to "expected".
PiperOrigin-RevId: 622937854
diff --git a/quiche/quic/core/quic_connection_test.cc b/quiche/quic/core/quic_connection_test.cc
index 11c98e6..883b6a3 100644
--- a/quiche/quic/core/quic_connection_test.cc
+++ b/quiche/quic/core/quic_connection_test.cc
@@ -1484,7 +1484,7 @@
QuicConfig config;
EXPECT_CALL(*send_algorithm_, SetFromConfig(_, _));
connection_.SetFromConfig(config);
- connection_.set_sent_server_preferred_address(kServerPreferredAddress);
+ connection_.set_expected_server_preferred_address(kServerPreferredAddress);
}
// Receive server preferred address.