summaryrefslogtreecommitdiffstats
path: root/plugin/firewall/eurephiafw_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/firewall/eurephiafw_helpers.h')
-rw-r--r--plugin/firewall/eurephiafw_helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/firewall/eurephiafw_helpers.h b/plugin/firewall/eurephiafw_helpers.h
index 09d9930..285bfa1 100644
--- a/plugin/firewall/eurephiafw_helpers.h
+++ b/plugin/firewall/eurephiafw_helpers.h
@@ -33,8 +33,8 @@
#ifndef EUREPHIAFW_HELPERS_H_
#define EUREPHIAFW_HELPERS_H_
-#define EFW_MSG_SIZE 1024 /**< Maximum size of a message in the POSIX MQ queue */
-#define MQUEUE_NAME "/eurephiaFW" /**< Name of the MQ queue */
+#define EFW_MSG_SIZE sizeof(eFWupdateRequest) /**< Maximum size of a message in the POSIX MQ queue */
+#define MQUEUE_NAME "/eurephiaFW" /**< Name of the MQ queue */
#define SEMPH_MASTER "eurephiafw_master" /**< Name of the semaphore the main openvpn process uses */
#define SEMPH_WORKER "eurephiafw_worker" /**< Name of the semaphore the firewall process uses */