aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/reliable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/reliable.h')
-rw-r--r--src/openvpn/reliable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvpn/reliable.h b/src/openvpn/reliable.h
index 182aa3a..99a4bc6 100644
--- a/src/openvpn/reliable.h
+++ b/src/openvpn/reliable.h
@@ -66,6 +66,9 @@ struct reliable_ack
packet_id_type packet_id[RELIABLE_ACK_SIZE];
};
+/* The size of the ACK header */
+#define ACK_SIZE(n) (sizeof(uint8_t) + ((n) ? SID_SIZE : 0) + sizeof(packet_id_type) * (n))
+
/**
* The structure in which the reliability layer stores a single incoming
* or outgoing packet.