Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Mar 9, 2024
1 parent c7d5751 commit 48e8b24
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions include/quicly.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern "C" {
#define QUICLY_PACKET_TYPE_RETRY (QUICLY_LONG_HEADER_BIT | QUICLY_QUIC_BIT | 0x30)
#define QUICLY_PACKET_TYPE_BITMASK 0xf0

#define QUICLY_PACKET_IS_LONG_HEADER(first_byte) (((first_byte)&QUICLY_LONG_HEADER_BIT) != 0)
#define QUICLY_PACKET_IS_LONG_HEADER(first_byte) (((first_byte) & QUICLY_LONG_HEADER_BIT) != 0)

/**
* Version 1.
Expand All @@ -74,7 +74,7 @@ extern "C" {
*/
#define QUICLY_PROTOCOL_VERSION_DRAFT27 0xff00001b

#define QUICLY_PACKET_IS_INITIAL(first_byte) (((first_byte)&0xf0) == 0xc0)
#define QUICLY_PACKET_IS_INITIAL(first_byte) (((first_byte) & 0xf0) == 0xc0)

#define QUICLY_STATELESS_RESET_PACKET_MIN_LEN 39

Expand Down Expand Up @@ -1113,8 +1113,8 @@ int quicly_decode_transport_parameter_list(quicly_transport_parameters_t *params
*/
int quicly_connect(quicly_conn_t **conn, quicly_context_t *ctx, const char *server_name, struct sockaddr *dest_addr,
struct sockaddr *src_addr, const quicly_cid_plaintext_t *new_cid, ptls_iovec_t address_token,
ptls_handshake_properties_t *handshake_properties,
const quicly_transport_parameters_t *resumed_transport_params, void *appdata);
ptls_handshake_properties_t *handshake_properties, const quicly_transport_parameters_t *resumed_transport_params,
void *appdata);
/**
* accepts a new connection
* @param new_cid The CID to be used for the connection. When an error is being returned, the application can reuse the CID
Expand Down
2 changes: 1 addition & 1 deletion lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ static int aead_decrypt_1rtt(void *ctx, uint64_t pn, quicly_decoded_packet_t *pa

/* prepare key, when not available (yet) */
if (space->cipher.ingress.aead[aead_index] == NULL) {
Retry_1RTT : {
Retry_1RTT: {
/* Replace the AEAD key at the alternative slot (note: decryption key slots are shared by 0-RTT and 1-RTT), at the same time
* dropping 0-RTT header protection key. */
if (conn->application->cipher.ingress.header_protection.zero_rtt != NULL) {
Expand Down
8 changes: 4 additions & 4 deletions src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static struct {
struct {
const char *path;
int to_file;
} * reqs;
} *reqs;

struct st_stream_data_t {
quicly_streambuf_t streambuf;
Expand Down Expand Up @@ -452,11 +452,11 @@ static ssize_t receive_datagram(int fd, void *buf, quicly_address_t *src, uint8_
#ifdef IP_RECVTOS
if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type ==
#ifdef __APPLE__
IP_RECVTOS
IP_RECVTOS
#else
IP_TOS
IP_TOS
#endif
) {
) {
assert((char *)CMSG_DATA(cmsg) - (char *)cmsg + 1 == cmsg->cmsg_len);
*ecn = *(uint8_t *)CMSG_DATA(cmsg) & IPTOS_ECN_MASK;
}
Expand Down
2 changes: 1 addition & 1 deletion t/udpfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct queue_t {
uint8_t data[2048];
size_t len;
int64_t arrival;
} * elements;
} *elements;
} ring;
int64_t delay_usec; /* propagation delay */
int64_t interval_usec; /* serialization delay */
Expand Down

0 comments on commit 48e8b24

Please sign in to comment.