sysoptions.h: Add ability to override DROPBEAR_LISTEN_BACKLOG

This change allows adding DROPBEAR_LISTEN_BACKLOG to localoptions.h to
force the value.
This commit is contained in:
Ben Gardner 2017-06-05 08:39:45 -05:00
parent 7ab8f61974
commit 44f36d57e6

View File

@ -235,11 +235,13 @@
#define DROPBEAR_VFORK 1 #define DROPBEAR_VFORK 1
#endif #endif
#ifndef DROPBEAR_LISTEN_BACKLOG
#if MAX_UNAUTH_CLIENTS > MAX_CHANNELS #if MAX_UNAUTH_CLIENTS > MAX_CHANNELS
#define DROPBEAR_LISTEN_BACKLOG MAX_UNAUTH_CLIENTS #define DROPBEAR_LISTEN_BACKLOG MAX_UNAUTH_CLIENTS
#else #else
#define DROPBEAR_LISTEN_BACKLOG MAX_CHANNELS #define DROPBEAR_LISTEN_BACKLOG MAX_CHANNELS
#endif #endif
#endif
#ifndef DROPBEAR_NONE_CIPHER #ifndef DROPBEAR_NONE_CIPHER
#define DROPBEAR_NONE_CIPHER 0 #define DROPBEAR_NONE_CIPHER 0