about summary refs log tree commit diff stats
path: root/inc/handlers.h
diff options
context:
space:
mode:
authorRen Kararou <[email protected]>2025-01-05 02:29:15 -0600
committerRen Kararou <[email protected]>2025-01-05 02:29:15 -0600
commit5605a5ddf3c77232b04c002a82b91e227c0f27da (patch)
tree30d5cf75759aa4bd2e8e75d5a7c852931e114066 /inc/handlers.h
parent70a46fab050c3fdf38b9c72453f6e678cc8341be (diff)
downloadnbtpd-5605a5ddf3c77232b04c002a82b91e227c0f27da.tar.gz
nbtpd-5605a5ddf3c77232b04c002a82b91e227c0f27da.tar.bz2
nbtpd-5605a5ddf3c77232b04c002a82b91e227c0f27da.zip
builds on illumos, freebsd, and linux
Diffstat (limited to 'inc/handlers.h')
-rw-r--r--inc/handlers.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/handlers.h b/inc/handlers.h
index c174b6a..6be05da 100644
--- a/inc/handlers.h
+++ b/inc/handlers.h
@@ -4,9 +4,12 @@
 #include <netinet/in.h>
 #include "packet.h"
 
+#define NBD_NBTPD_ARGS_PATH_MAX 768
+#define NBD_NBTPD_ARGS_MODE_MAX 32
+
 typedef struct {
-	char path[768];
-	char mode[32];
+	char path[NBD_NBTPD_ARGS_PATH_MAX];
+	char mode[NBD_NBTPD_ARGS_MODE_MAX];
 	nbd_tftp_ecode err;
 	struct sockaddr_in client;
 } nbd_nbtpd_args;