diff options
Diffstat (limited to 'inc/handlers.h')
-rw-r--r-- | inc/handlers.h | 7 |
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; |