{
uint64_t varint;
- switch (id) {
- case NGX_QUIC_TP_ORIGINAL_CONNECTION_ID:
- case NGX_QUIC_TP_STATELESS_RESET_TOKEN:
- case NGX_QUIC_TP_PREFERRED_ADDRESS:
- /* TODO: implement */
- return NGX_DECLINED;
- }
-
switch (id) {
case NGX_QUIC_TP_DISABLE_ACTIVE_MIGRATION:
return NGX_ERROR;
}
+ switch (id) {
+ case NGX_QUIC_TP_ORIGINAL_CONNECTION_ID:
+ case NGX_QUIC_TP_PREFERRED_ADDRESS:
+ case NGX_QUIC_TP_STATELESS_RESET_TOKEN:
+ ngx_log_error(NGX_LOG_INFO, log, 0,
+ "quic client sent forbidden transport param"
+ " id 0x%xi", id);
+ return NGX_ERROR;
+ }
+
p = ngx_quic_parse_int(p, end, &len);
if (p == NULL) {
ngx_log_error(NGX_LOG_INFO, log, 0,