This is required to build packets from the same function.
int refcnt;
/* Next packet in the same datagram */
struct quic_tx_packet *next;
+ unsigned char type;
};
#define QUIC_CRYPTO_BUF_SHIFT 10
return 0;
}
-static inline void quic_tx_packet_init(struct quic_tx_packet *pkt)
+static inline void quic_tx_packet_init(struct quic_tx_packet *pkt, int type)
{
+ pkt->type = type;
pkt->len = 0;
pkt->cdata_len = 0;
pkt->in_flight_len = 0;
goto err;
}
- quic_tx_packet_init(pkt);
+ quic_tx_packet_init(pkt, pkt_type);
beg = *pos;
pn_len = 0;
buf_pn = NULL;
goto err;
}
- quic_tx_packet_init(pkt);
+ quic_tx_packet_init(pkt, QUIC_PACKET_TYPE_SHORT);
beg = *pos;
qel = &qc->els[QUIC_TLS_ENC_LEVEL_APP];
pn_len = 0;