Skip to content

Commit

Permalink
Release 2.6.1
Browse files Browse the repository at this point in the history
- [BUGFIX] set retry token on all resubmitted packets.
- Event log: log sent packet flags.  In particular, this allows one
  to see whether token was sent.
- Don't migrate client if es_allow_migration is false.
  • Loading branch information
Dmitri Tikhonov committed Nov 8, 2019
1 parent 79f2752 commit 84dbbb7
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2019-11-08
- 2.6.1
- [BUGFIX] set retry token on all resubmitted packets.
- Event log: log sent packet flags. In particular, this allows one
to see whether token was sent.
- Don't migrate client if es_allow_migration is false.

2019-11-07
- 2.6.0
- [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
Expand Down
2 changes: 1 addition & 1 deletion include/lsquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {

#define LSQUIC_MAJOR_VERSION 2
#define LSQUIC_MINOR_VERSION 6
#define LSQUIC_PATCH_VERSION 0
#define LSQUIC_PATCH_VERSION 1

/**
* Engine flags:
Expand Down
2 changes: 1 addition & 1 deletion src/liblsquic/lsquic_enc_sess_ietf.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static const struct alpn_map {
} s_alpns[] = {
{ LSQVER_ID24, (unsigned char *) "\x05h3-24", },
{ LSQVER_ID23, (unsigned char *) "\x05h3-23", },
{ LSQVER_VERNEG, (unsigned char *) "\x05h3-23", },
{ LSQVER_VERNEG, (unsigned char *) "\x05h3-24", },
};

struct enc_sess_iquic;
Expand Down
5 changes: 3 additions & 2 deletions src/liblsquic/lsquic_ev_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ lsquic_ev_log_packet_sent (const lsquic_cid_t *cid,
packet_out->po_frame_types));
else
LCID("sent packet %"PRIu64", type %s, crypto: %s, size %hu, frame "
"types: %s, ecn: %u, spin: %d; kp: %u, path: %hhu",
"types: %s, ecn: %u, spin: %d; kp: %u, path: %hhu, flags: %u",
packet_out->po_packno, lsquic_hety2str[packet_out->po_header_type],
lsquic_enclev2str[ lsquic_packet_out_enc_level(packet_out) ],
packet_out->po_enc_data_sz,
Expand All @@ -236,7 +236,8 @@ lsquic_ev_log_packet_sent (const lsquic_cid_t *cid,
/* spin bit value is only valid for short packet headers */
lsquic_packet_out_spin_bit(packet_out),
lsquic_packet_out_kp(packet_out),
packet_out->po_path->np_path_id);
packet_out->po_path->np_path_id,
(unsigned) packet_out->po_flags);
}


Expand Down
8 changes: 6 additions & 2 deletions src/liblsquic/lsquic_full_conn_ietf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2566,9 +2566,13 @@ begin_migra_or_retire_cid (struct ietf_full_conn *conn,
struct sockaddr_in6 v6;
} sockaddr;

if (params->tp_disable_active_migration)
if (params->tp_disable_active_migration
|| !conn->ifc_settings->es_allow_migration)
{
LSQ_DEBUG("TP disables migration: retire PreferredAddress CID");
if (params->tp_disable_active_migration)
LSQ_DEBUG("TP disables migration: retire PreferredAddress CID");
else
LSQ_DEBUG("Migration not allowed: retire PreferredAddress CID");
retire_cid_from_tp(conn, params);
return 0;
}
Expand Down
13 changes: 12 additions & 1 deletion src/liblsquic/lsquic_send_ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2605,7 +2605,11 @@ lsquic_send_ctl_retry (struct lsquic_send_ctl *ctl,
continue;

if (packet_out->po_nonce)
{
free(packet_out->po_nonce);
packet_out->po_nonce = NULL;
packet_out->po_flags &= ~PO_NONCE;
}

if (0 != send_ctl_set_packet_out_token(ctl, packet_out))
{
Expand All @@ -2624,6 +2628,12 @@ lsquic_send_ctl_retry (struct lsquic_send_ctl *ctl,
packet_out->po_path);
if (!new_packet_out)
return -1;
if (0 != send_ctl_set_packet_out_token(ctl, new_packet_out))
{
send_ctl_destroy_packet(ctl, new_packet_out);
LSQ_INFO("cannot set out token on packet");
return -1;
}
if (0 == lsquic_packet_out_split_in_two(&ctl->sc_enpub->enp_mm,
packet_out, new_packet_out,
ctl->sc_conn_pub->lconn->cn_pf, sz - 1200))
Expand All @@ -2633,7 +2643,8 @@ lsquic_send_ctl_retry (struct lsquic_send_ctl *ctl,
lsquic_packet_out_set_packno_bits(packet_out, bits);
TAILQ_INSERT_AFTER(&ctl->sc_lost_packets, packet_out,
new_packet_out, po_next);
return 0;
new_packet_out->po_flags |= PO_LOST;
packet_out->po_flags &= ~PO_SENT_SZ;
}
else
{
Expand Down

0 comments on commit 84dbbb7

Please sign in to comment.