aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/019-idle-links
diff options
context:
space:
mode:
Diffstat (limited to 'research/experiments/019-idle-links')
-rw-r--r--research/experiments/019-idle-links/links.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/research/experiments/019-idle-links/links.c b/research/experiments/019-idle-links/links.c
index 8c52550..4c77482 100644
--- a/research/experiments/019-idle-links/links.c
+++ b/research/experiments/019-idle-links/links.c
@@ -179,7 +179,7 @@ static PureLinkSender *sender_of(size_t device) {
/* What a sender has to send, to its socket. */
static void send_packets(PureLinkSender *s, int fd, uint64_t now) {
- unsigned char packet[PURE_LINK_DATAGRAM];
+ unsigned char packet[PURE_LINK_DATAGRAM_MOST];
uint64_t number;
for (size_t size; (size = pure_link_sender_packet(s, packet, false, now, &number));) {
if (send(fd, packet, size, 0) < 0 && (errno == EAGAIN || errno == ENOBUFS)) {
@@ -192,7 +192,7 @@ static void send_packets(PureLinkSender *s, int fd, uint64_t now) {
/* Answers waiting on fd, to the sender. */
static void take_answers(PureLinkSender *s, int fd, uint64_t now) {
- unsigned char packet[PURE_LINK_DATAGRAM + 64];
+ unsigned char packet[PURE_LINK_DATAGRAM_MOST + 64];
for (ssize_t got; (got = recv(fd, packet, sizeof(packet), 0)) > 0;) pure_link_sender_take(s, packet, (size_t)got, now);
}