diff options
author | marshall <stmr@umich.edu> | 2023-07-26 15:39:08 -0400 |
---|---|---|
committer | marshall <stmr@umich.edu> | 2023-07-26 21:43:15 -0400 |
commit | 42dce80dce14b7a73ae3405537ab8790a287057e (patch) | |
tree | 165112f4f267d3a91b43dde80bb9be331d8e6727 /src/transport/gnunet-communicator-quic.c | |
parent | 1470f8232a5e3e787725a5b0dad62bccf7e722ef (diff) | |
download | gnunet-42dce80dce14b7a73ae3405537ab8790a287057e.tar.gz gnunet-42dce80dce14b7a73ae3405537ab8790a287057e.zip |
rename id_recvd to id_rcvd
Diffstat (limited to 'src/transport/gnunet-communicator-quic.c')
-rw-r--r-- | src/transport/gnunet-communicator-quic.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/gnunet-communicator-quic.c b/src/transport/gnunet-communicator-quic.c index b31d86cf7..626801821 100644 --- a/src/transport/gnunet-communicator-quic.c +++ b/src/transport/gnunet-communicator-quic.c | |||
@@ -79,7 +79,7 @@ struct PeerAddress | |||
79 | /** | 79 | /** |
80 | * Flag to indicate whether we know the PeerIdentity (target) yet | 80 | * Flag to indicate whether we know the PeerIdentity (target) yet |
81 | */ | 81 | */ |
82 | int id_recvd; | 82 | int id_rcvd; |
83 | 83 | ||
84 | /** | 84 | /** |
85 | * Address of the receiver in the human-readable format | 85 | * Address of the receiver in the human-readable format |
@@ -236,7 +236,7 @@ recv_from_streams (struct PeerAddress *peer) | |||
236 | /** | 236 | /** |
237 | * Initial packet should contain peerid | 237 | * Initial packet should contain peerid |
238 | */ | 238 | */ |
239 | if (GNUNET_NO == peer->id_recvd) | 239 | if (GNUNET_NO == peer->id_rcvd) |
240 | { | 240 | { |
241 | if (recv_len < sizeof(struct GNUNET_PeerIdentity)) | 241 | if (recv_len < sizeof(struct GNUNET_PeerIdentity)) |
242 | { | 242 | { |
@@ -250,7 +250,7 @@ recv_from_streams (struct PeerAddress *peer) | |||
250 | struct GNUNET_PeerIdentity *pid = (struct | 250 | struct GNUNET_PeerIdentity *pid = (struct |
251 | GNUNET_PeerIdentity *) stream_buf; | 251 | GNUNET_PeerIdentity *) stream_buf; |
252 | peer->target = *pid; | 252 | peer->target = *pid; |
253 | peer->id_recvd = GNUNET_YES; | 253 | peer->id_rcvd = GNUNET_YES; |
254 | buf_ptr += sizeof(struct GNUNET_PeerIdentity); | 254 | buf_ptr += sizeof(struct GNUNET_PeerIdentity); |
255 | recv_len -= sizeof(struct GNUNET_PeerIdentity); | 255 | recv_len -= sizeof(struct GNUNET_PeerIdentity); |
256 | } | 256 | } |
@@ -263,7 +263,7 @@ recv_from_streams (struct PeerAddress *peer) | |||
263 | if (ntohs (hdr->size) > recv_len) | 263 | if (ntohs (hdr->size) > recv_len) |
264 | { | 264 | { |
265 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 265 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
266 | "message size stated is greater than length of recvd data!\n"); | 266 | "message size stated is greater than length of rcvd data!\n"); |
267 | return; | 267 | return; |
268 | } | 268 | } |
269 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "passing %zd bytes to core\n", | 269 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "passing %zd bytes to core\n", |
@@ -1197,12 +1197,12 @@ sock_read (void *cls) | |||
1197 | if (NULL == peer) | 1197 | if (NULL == peer) |
1198 | { | 1198 | { |
1199 | /** | 1199 | /** |
1200 | * Create new PeerAddress (receiver) with id_recvd = false | 1200 | * Create new PeerAddress (receiver) with id_rcvd = false |
1201 | */ | 1201 | */ |
1202 | peer = GNUNET_new (struct PeerAddress); | 1202 | peer = GNUNET_new (struct PeerAddress); |
1203 | peer->address = GNUNET_memdup (&sa, salen); | 1203 | peer->address = GNUNET_memdup (&sa, salen); |
1204 | peer->address_len = salen; | 1204 | peer->address_len = salen; |
1205 | peer->id_recvd = GNUNET_NO; | 1205 | peer->id_rcvd = GNUNET_NO; |
1206 | peer->conn = NULL; | 1206 | peer->conn = NULL; |
1207 | peer->foreign_addr = sockaddr_to_udpaddr_string (peer->address, | 1207 | peer->foreign_addr = sockaddr_to_udpaddr_string (peer->address, |
1208 | peer->address_len); | 1208 | peer->address_len); |